mirror of
https://github.com/bokysan/docker-postfix.git
synced 2025-09-07 23:14:39 +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
|
- name: Run unit tests
|
||||||
run: ./unit-tests.sh
|
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
|
- name: Run integration tests
|
||||||
shell: bash
|
shell: bash
|
||||||
env: # Or as an environment variable
|
env: # Or as an environment variable
|
||||||
|
@ -74,6 +65,15 @@ jobs:
|
||||||
echo "Flags: ${{ steps.buildx.outputs.flags }}"
|
echo "Flags: ${{ steps.buildx.outputs.flags }}"
|
||||||
echo "Platforms: ${{ steps.buildx.outputs.platforms }}"
|
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
|
- name: Login to DockerHub
|
||||||
uses: docker/login-action@v1
|
uses: docker/login-action@v1
|
||||||
with:
|
with:
|
||||||
|
|
40
.github/workflows/tags.yml
vendored
40
.github/workflows/tags.yml
vendored
|
@ -30,6 +30,26 @@ jobs:
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
- name: Set up Docker Buildx
|
||||||
id: buildx
|
id: buildx
|
||||||
|
@ -59,26 +79,6 @@ jobs:
|
||||||
with:
|
with:
|
||||||
username: 'boky'
|
username: 'boky'
|
||||||
password: '${{ secrets.DOCKER_ACCESS_TOKEN }}'
|
password: '${{ secrets.DOCKER_ACCESS_TOKEN }}'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- name: Build and push unmarked release
|
- name: Build and push unmarked release
|
||||||
uses: docker/build-push-action@v2
|
uses: docker/build-push-action@v2
|
||||||
|
|
Loading…
Add table
Reference in a new issue