mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 00:49:03 +00:00
Add quay push (#8967)
* Add quay push to the snapshot pusher to start * Tags need to be just the tag part in this one * Put the tag in a variable * Fix typos * Switch up how we define registry to see if it finds the image like this * Add quay push everywhere else
This commit is contained in:
parent
083b781c2c
commit
45e0a14700
3 changed files with 40 additions and 1 deletions
|
|
@ -54,3 +54,12 @@ jobs:
|
|||
docker tag fleetdm/fleetctl fleetdm/fleetctl:${{ inputs.image_tag }}
|
||||
docker push fleetdm/fleetctl:${{ inputs.image_tag }}
|
||||
|
||||
- name: Push To quay.io
|
||||
id: push-to-quay
|
||||
uses: redhat-actions/push-to-registry@v2
|
||||
with:
|
||||
image: fleetdm/fleetctl
|
||||
tags: ${{ inputs.image_tag }}
|
||||
registry: quay.io/
|
||||
username: fleetdm+fleetreleaser
|
||||
password: ${{ secrets.QUAY_REGISTRY_PASSWORD }}
|
||||
|
|
|
|||
15
.github/workflows/goreleaser-fleet.yaml
vendored
15
.github/workflows/goreleaser-fleet.yaml
vendored
|
|
@ -56,3 +56,18 @@ jobs:
|
|||
env:
|
||||
GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Get tag
|
||||
run: |
|
||||
echo "TAG=$(git describe --tags | sed -e "s/^fleet-//")" >> $GITHUB_OUTPUT
|
||||
id: docker
|
||||
|
||||
- name: Push To quay.io
|
||||
id: push-to-quay
|
||||
uses: redhat-actions/push-to-registry@v2
|
||||
with:
|
||||
image: fleetdm/fleet
|
||||
tags: ${{ steps.docker.outputs.TAG }}
|
||||
registry: quay.io/
|
||||
username: fleetdm+fleetreleaser
|
||||
password: ${{ secrets.QUAY_REGISTRY_PASSWORD }}
|
||||
|
|
|
|||
17
.github/workflows/goreleaser-snapshot-fleet.yaml
vendored
17
.github/workflows/goreleaser-snapshot-fleet.yaml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
|||
#
|
||||
# Also not run if author is dependabot (it doesn't have access to Github secrets).
|
||||
if: ${{ (github.repository == 'fleetdm/fleet') && (github.actor != 'dependabot[bot]') }}
|
||||
runs-on: ubuntu-latest
|
||||
runs-on: ubuntu-20.04
|
||||
environment: Docker Hub
|
||||
steps:
|
||||
- name: Checkout
|
||||
|
|
@ -57,3 +57,18 @@ jobs:
|
|||
# Explicitly push the docker images as GoReleaser will not do so in snapshot mode
|
||||
- name: Publish Docker images
|
||||
run: docker push fleetdm/fleet --all-tags
|
||||
|
||||
- name: Get tag
|
||||
run: |
|
||||
echo "TAG=$(git rev-parse --abbrev-ref HEAD)" >> $GITHUB_OUTPUT
|
||||
id: docker
|
||||
|
||||
- name: Push To quay.io
|
||||
id: push-to-quay
|
||||
uses: redhat-actions/push-to-registry@v2
|
||||
with:
|
||||
image: fleetdm/fleet
|
||||
tags: ${{ steps.docker.outputs.TAG }}
|
||||
registry: quay.io/
|
||||
username: fleetdm+fleetreleaser
|
||||
password: ${{ secrets.QUAY_REGISTRY_PASSWORD }}
|
||||
|
|
|
|||
Loading…
Reference in a new issue