Upd: Simplify GitHub actions.

This commit is contained in:
Bojan Čekrlić 2021-05-29 20:28:42 +02:00
parent 7892c03cdc
commit 18ca47e62a
2 changed files with 29 additions and 29 deletions

View file

@ -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:

View file

@ -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