Skip to content

Commit

Permalink
Upd: Simplify GitHub actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
bokysan committed May 29, 2021
1 parent 7892c03 commit 18ca47e
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down
40 changes: 20 additions & 20 deletions .github/workflows/tags.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,26 @@ jobs:
- name: Set up Docker Buildx
id: buildx
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 18ca47e

Please sign in to comment.