Skip to content

Commit

Permalink
update github workflow docker publish strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
jubalm committed Feb 15, 2024
1 parent 27d1a6e commit b2080d8
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ipfs-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:

- name: Build image
run: |
docker build --target self-host . --file Dockerfile --tag $IMAGE_TAG
docker build --file Dockerfile --tag $IMAGE_TAG

# Uses the `docker/login-action` action to log in to the Container registry registry using the account and password that will publish the packages. Once published, the packages are scoped to the account defined here.
- name: Log in to the Container registry
Expand Down Expand Up @@ -57,3 +57,11 @@ jobs:

docker tag $IMAGE_TAG $IMAGE_ID:$VERSION
docker push $IMAGE_ID:$VERSION

# Make image reference available to subsequent steps
echo "IMAGE_RELEASE_ID=$(echo $IMAGE_ID:$VERSION)" >> $GITHUB_ENV

# Run docker image script to publish app to nft.storage
- name: Publish to nft.storage
run: |
docker run -e NFTSTORAGE_API_KEY=${{ secrets.NFTSTORAGE_API_KEY }} $IMAGE_RELEASE_ID nft.storage

0 comments on commit b2080d8

Please sign in to comment.