Skip to content

Commit

Permalink
push new copa-action image on release
Browse files Browse the repository at this point in the history
  • Loading branch information
ashnamehrotra committed Aug 8, 2023
1 parent 8acdd9e commit 022cd71
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,18 @@ jobs:
args: release --clean --config .goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout copa-action repository
uses: actions/checkout@v2
with:
repository: project-copacetic/copa-action
ref: main

- name: Set up Docker
uses: docker/setup-buildx-action@ecf95283f03858871ff00b787d79c419715afc34

- name: Build and push copa-action image with new version
run: |
tag="$(echo "${{ github.ref }}" | tr -d 'refs/tags/v')"
docker build --build-arg copa_version=${tag} -t ghcr.io/project-copacetic/copa-action:v"$tag" .
docker push ghcr.io/project-copacetic/copa-action:v"$tag"

0 comments on commit 022cd71

Please sign in to comment.