Skip to content

Commit

Permalink
Merge pull request #5 from fitbeard/fix/merge_release_and_image
Browse files Browse the repository at this point in the history
fix: move image job to release
  • Loading branch information
fitbeard authored Jan 12, 2024
2 parents 76f780c + 3946b78 commit 172129c
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 45 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/image.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,42 @@
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

image:
runs-on: ubuntu-latest
steps:
- name: Install QEMU static binaries
uses: docker/[email protected]

- name: Configure Buildkit
uses: docker/[email protected]

- name: Checkout project
uses: actions/checkout@v4

- name: Authenticate with Quay.io
uses: docker/[email protected]
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_ROBOT_TOKEN }}

- name: Generate image tag
id: image_tag
run: |
echo tag=$(echo ${{ github.event.ref }} | sed 's/^v//') >> $GITHUB_OUTPUT
- name: Build image
uses: docker/[email protected]
with:
context: .
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
platforms: |
linux/amd64
linux/arm64
tags: |
quay.io/tadas/radosgw-exporter:latest
quay.io/tadas/radosgw-exporter:${{ steps.image_tag.outputs.tag }}

0 comments on commit 172129c

Please sign in to comment.