Skip to content

Commit

Permalink
feat: push new copa-action image on release (#237)
Browse files Browse the repository at this point in the history
Signed-off-by: ashnamehrotra <ashnamehrotra@gmail.com>
Co-authored-by: Serta莽 脰zercan <852750+sozercan@users.noreply.github.com>
  • Loading branch information
ashnamehrotra and sozercan committed Aug 10, 2023
1 parent a8a0e82 commit 0cc348f
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,17 @@ jobs:
args: release --clean --config .goreleaser.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Checkout copa-action repository
uses: actions/checkout@@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
repository: project-copacetic/copa-action
ref: main

- name: Set up Docker
uses: docker/setup-buildx-action@ecf95283f03858871ff00b787d79c419715afc34 # v2.7.0

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

0 comments on commit 0cc348f

Please sign in to comment.