Skip to content

Commit

Permalink
Update docker-test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
cansavvy authored Aug 15, 2024
1 parent f6f42e0 commit 71fab31
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/docker-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,29 +38,18 @@ jobs:
- name: checkout repo
uses: actions/checkout@v3

# Set up Docker build
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

# Setup layer cache
- name: Cache Docker layers
uses: actions/cache@v2
with:
path: /tmp/.buildx-cache
key: ${{ runner.os }}-buildx-${{ github.sha }}
restore-keys: |
${{ runner.os }}-buildx-
# Login to Dockerhub
- name: Login to DockerHub
uses: docker/setup-buildx-action@v3

- name: Login to Docker Hub
if: ${{ inputs.dockerhubpush != 'false' }}
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
push: ${{ inputs.dockerhubpush }}
context: ${{ inputs.directory }}
Expand Down

0 comments on commit 71fab31

Please sign in to comment.