Skip to content

Commit

Permalink
optimized workflow for dependabot
Browse files Browse the repository at this point in the history
  • Loading branch information
anbo-de committed Dec 25, 2023
1 parent 9bf0c3d commit fa8dbbb
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
- uses: actions/checkout@v4
- name: Build the Docker image for temporary use only
if: ${{ ! startsWith(github.ref, 'refs/tags/') }}
run: docker build . --file Dockerfile --tag tmp:latest
- name: Build the Docker image for tag release
if: startsWith(github.ref, 'refs/tags/')
run: docker build . --file Dockerfile --tag ${{ secrets.DOCKER_IMAGE_NAME }}:latest
- name: Docker Login
if: startsWith(github.ref, 'refs/tags/')
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USER }}
password: ${{ secrets.DOCKER_PASSWORD }}
Expand All @@ -33,4 +37,4 @@ jobs:
uses: WSE-research/[email protected]
with:
updater_host: ${{ secrets.UPDATER_HOST }}
api_key: ${{ secrets.API_KEY }}
api_key: ${{ secrets.API_KEY }}

0 comments on commit fa8dbbb

Please sign in to comment.