Skip to content

Commit

Permalink
ci: switched from secrets to vars for DOCKERHUB_TEMPLATE
Browse files Browse the repository at this point in the history
  • Loading branch information
TyIsI committed Jun 14, 2024
1 parent 4fe59b1 commit 05641b5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docker-build-only.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docker Image CI (Build Only)

on:
pull_request:
branches: ['main', 'master', 'trunk']
branches: ["main", "master", "trunk"]

jobs:
build-only:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/docker-build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: Docker Image CI

on:
push:
branches: ['main', 'master', 'trunk']
tags: ['v*']
branches: ["main", "master", "trunk"]
tags: ["v*"]

jobs:
build-push:
Expand All @@ -19,7 +19,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ secrets.DOCKERHUB_TEMPLATE }}
images: ${{ vars.DOCKERHUB_TEMPLATE }}

- name: Login to DockerHub
uses: docker/login-action@v3
Expand All @@ -32,5 +32,5 @@ jobs:
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}, ${{ secrets.DOCKERHUB_TEMPLATE }}:latest
tags: ${{ steps.meta.outputs.tags }}, ${{ vars.DOCKERHUB_TEMPLATE }}:latest
labels: ${{ steps.meta.outputs.labels }}

0 comments on commit 05641b5

Please sign in to comment.