Skip to content

Commit 6baf036

Browse files
committed
feat: Update build settings
1 parent 86c529a commit 6baf036

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/docker-image.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414

1515
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v4
18+
1619
- name: Log in to Docker Hub
1720
uses: docker/login-action@v3
1821
with:
@@ -32,10 +35,10 @@ jobs:
3235
- name: Build and push
3336
uses: docker/build-push-action@v6
3437
with:
38+
context: .
3539
platforms: linux/amd64,linux/arm64
3640
sbom: true
3741
push: true
38-
tags: ${{ secrets.DOCKERHUB_IMAGE_NAME }}:${{ steps.date.outputs.date }}
39-
40-
- name: Push the Docker image with latest tag
41-
run: docker tag ${{ secrets.DOCKERHUB_IMAGE_NAME }}:${{ steps.date.outputs.date }} ${{ secrets.DOCKERHUB_IMAGE_NAME }}:latest && docker push ${{ secrets.DOCKERHUB_IMAGE_NAME }}:latest
42+
tags: |
43+
${{ secrets.DOCKERHUB_IMAGE_NAME }}:${{ steps.date.outputs.date }}
44+
${{ secrets.DOCKERHUB_IMAGE_NAME }}:latest

0 commit comments

Comments
 (0)