mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-06 22:44:59 +08:00
Upd: Simplify GitHub actions.
This commit is contained in:
parent
7892c03cdc
commit
18ca47e62a
2 changed files with 29 additions and 29 deletions
18
.github/workflows/master.yml
vendored
18
.github/workflows/master.yml
vendored
|
@ -31,15 +31,6 @@ jobs:
|
|||
- name: Run unit tests
|
||||
run: ./unit-tests.sh
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-single-buildx-${{ hashFiles('**/Dockerfile') }}
|
||||
#key: ${{ runner.os }}-single-buildx-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-single-buildx-
|
||||
|
||||
- name: Run integration tests
|
||||
shell: bash
|
||||
env: # Or as an environment variable
|
||||
|
@ -74,6 +65,15 @@ jobs:
|
|||
echo "Flags: ${{ steps.buildx.outputs.flags }}"
|
||||
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
|
||||
|
||||
- name: Cache Docker layers
|
||||
uses: actions/cache@v2
|
||||
with:
|
||||
path: /tmp/.buildx-cache
|
||||
key: ${{ runner.os }}-single-buildx-${{ hashFiles('**/Dockerfile') }}
|
||||
#key: ${{ runner.os }}-single-buildx-${{ github.sha }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-single-buildx-
|
||||
|
||||
- name: Login to DockerHub
|
||||
uses: docker/login-action@v1
|
||||
with:
|
||||
|
|
40
.github/workflows/tags.yml
vendored
40
.github/workflows/tags.yml
vendored
|
@ -30,6 +30,26 @@ jobs:
|
|||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
id: buildx
|
||||
|
@ -59,26 +79,6 @@ jobs:
|
|||
with:
|
||||
username: 'boky'
|
||||
password: '${{ secrets.DOCKER_ACCESS_TOKEN }}'
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
- name: Build and push unmarked release
|
||||
uses: docker/build-push-action@v2
|
||||
|
|
Loading…
Add table
Reference in a new issue