mirror of
https://github.com/pomerium/pomerium.git
synced 2025-06-04 11:52:53 +02:00
chore(deps): bump stefanzweifel/git-auto-commit-action
Bumps [stefanzweifel/git-auto-commit-action](https://github.com/stefanzweifel/git-auto-commit-action) from 4.16.0 to 5.0.0.
- [Release notes](https://github.com/stefanzweifel/git-auto-commit-action/releases)
- [Changelog](https://github.com/stefanzweifel/git-auto-commit-action/blob/master/CHANGELOG.md)
- [Commits](3ea6ae190b...8756aa072e
)
---
updated-dependencies:
- dependency-name: stefanzweifel/git-auto-commit-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
96 lines
3.3 KiB
YAML
96 lines
3.3 KiB
YAML
name: Docker Main
|
|
permissions:
|
|
contents: read
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
sha-tag: ${{ steps.metadata.outputs.sha-tag }}
|
|
image: ${{ steps.metadata.outputs.image }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@68827325e0b33c7199eb31dd4e31fbe9023e06e3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@f95db51fddba0c2d1ec667646a06c2ce06100226
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USER }}
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
- name: Prepare Image Metadata
|
|
id: metadata
|
|
run: |
|
|
IMAGE=pomerium/pomerium
|
|
SHA_TAG=git-${GITHUB_SHA::8}
|
|
TAGS=${IMAGE}:main
|
|
TAGS=${TAGS},${IMAGE}:master
|
|
TAGS=${TAGS},${IMAGE}:${SHA_TAG}
|
|
TS=$(date +%Y%m%d%H%M%S)
|
|
echo "tags=${TAGS}" >> $GITHUB_OUTPUT
|
|
echo "timestamp=${TS}" >> $GITHUB_OUTPUT
|
|
echo "name=pomerium" >> $GITHUB_OUTPUT
|
|
echo "image=${IMAGE}" >> $GITHUB_OUTPUT
|
|
echo "sha-tag=${SHA_TAG}" >> $GITHUB_OUTPUT
|
|
|
|
- name: Docker Publish - Main
|
|
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64
|
|
tags: ${{ steps.metadata.outputs.tags }}
|
|
labels: |
|
|
org.opencontainers.image.created=${{ steps.metadata.outputs.timestamp }}
|
|
org.opencontainers.image.name=${{ steps.metadata.outputs.name }}
|
|
org.opencontainers.image.revision=${{ github.sha }}
|
|
|
|
- name: Docker Publish - Debug
|
|
uses: docker/build-push-action@4a13e500e55cf31b7a5d59a38ab2040ab0f42f56
|
|
with:
|
|
context: .
|
|
file: ./Dockerfile.debug
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64
|
|
tags: pomerium/pomerium:debug
|
|
labels: |
|
|
org.opencontainers.image.created=${{ steps.metadata.outputs.timestamp }}
|
|
org.opencontainers.image.name=${{ steps.metadata.outputs.name }}
|
|
org.opencontainers.image.revision=${{ github.sha }}
|
|
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
needs: publish
|
|
steps:
|
|
- name: Checkout Gitops Repo
|
|
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
|
|
with:
|
|
repository: pomerium/gitops-argocd
|
|
token: ${{ secrets.APPARITOR_GITHUB_TOKEN }}
|
|
|
|
- name: Bump psql environment
|
|
uses: mikefarah/yq@1c3d55106075bd37df197b4bc03cb4a413fdb903
|
|
with:
|
|
cmd:
|
|
yq eval '.pomerium.image.tag = "${{ needs.publish.outputs.sha-tag }}"' -i
|
|
projects/pomerium-master-postgres/pomerium/values.yaml
|
|
|
|
- name: Commit changes
|
|
uses: stefanzweifel/git-auto-commit-action@8756aa072ef5b4a080af5dc8fef36c5d586e521d
|
|
with:
|
|
commit_message: |
|
|
Bump test environment pomerium/pomerium
|
|
Image tag: ${{ needs.publish.outputs.sha-tag }}
|
|
Source Repo: ${{ github.repository }}@${{ github.sha }}
|