Skip to content

Commit

Permalink
Update Docker image build and push process
Browse files Browse the repository at this point in the history
  • Loading branch information
ashaffah committed Feb 22, 2024
1 parent 1caec21 commit d0a0747
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:

- name: Build and push Docker image
run: |
docker build -t ashaffah/kodepos:${{ github.sha }} -t docker.pkg.github.com/${{ github.repository }}/kodepos:${{ github.sha }} .
docker push ashaffah/kodepos:${{ github.sha }}
docker push docker.pkg.github.com/${{ github.repository }}/kodepos:${{ github.sha }}
VERSION=$(git describe --tags --abbrev=0)
docker build -t ashaffah/kode-pos:$VERSION .
docker push ashaffah/kode-pos:$VERSION
- name: Set latest version
run: echo "LATEST_VERSION=latest" >> $GITHUB_ENV
Expand Down

0 comments on commit d0a0747

Please sign in to comment.