Skip to content

Commit

Permalink
change image name to test GHA to GHCR
Browse files Browse the repository at this point in the history
  • Loading branch information
thetoolsmith committed Jan 8, 2025
1 parent 43c43c3 commit b318e25
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
- name: 'Build Image'
id: build
run: |
docker build -t ghcr.io/cfpb/regtech/sbl/sbl-filing-api:latest -f Dockerfile .
docker tag ghcr.io/cfpb/regtech/sbl/sbl-filing-api:latest ghcr.io/cfpb/regtech/sbl/sbl-filing-api:${{env.TAG_VERSION}}
docker tag ghcr.io/cfpb/regtech/sbl/sbl-filing-api:latest ghcr.io/cfpb/regtech/sbl/sbl-filing-api:${{env.TAG_VERSION}}_${{github.run_number}}.${{github.run_attempt}}
docker build -t ghcr.io/cfpb/regtech/sbl/sbl-filing-api-latest:latest -f Dockerfile .
docker tag ghcr.io/cfpb/regtech/sbl/sbl-filing-api-latest:latest ghcr.io/cfpb/regtech/sbl/sbl-filing-api:${{env.TAG_VERSION}}
docker tag ghcr.io/cfpb/regtech/sbl/sbl-filing-api-latest:latest ghcr.io/cfpb/regtech/sbl/sbl-filing-api:${{env.TAG_VERSION}}_${{github.run_number}}.${{github.run_attempt}}
- name: 'Login to GitHub Container Registry'
id: login
Expand All @@ -39,5 +39,5 @@ jobs:
id: publish
if: github.ref == 'refs/heads/main' && steps.login.conclusion == 'success'
run: |
docker push ghcr.io/cfpb/regtech/sbl/sbl-filing-api --all-tags
docker push ghcr.io/cfpb/regtech/sbl/sbl-filing-api-latest --all-tags

0 comments on commit b318e25

Please sign in to comment.