Skip to content

Commit

Permalink
Update docker-image.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
catttam authored Jul 8, 2024
1 parent a8b0916 commit fe326d3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,13 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: GHCR login
env:
GHCR_USERNAME: ${{ secrets.GHCR_USERNAME }}
GHCR_PASSWORD: ${{ secrets.GHCR_PASSWORD }}
run: echo "${GHCR_PASSWORD}" | docker login ghcr.io --username "${GHCR_USERNAME}" --password-stdin
- name: Build the Docker image
run: docker build . --file Dockerfile --tag oscar-metrics:$(date +%s)
run: |
GHCR_IMAGE=ghcr.io/grycap/oscar-metrics
docker build . --file Dockerfile --output "type=image,push=true" --tag ${GHCR_IMAGE}:latest

0 comments on commit fe326d3

Please sign in to comment.