mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 02:16:28 +02:00
* chore(deps): bump the github-actions group with 7 updates Bumps the github-actions group with 7 updates: | Package | From | To | | --- | --- | --- | | [docker/setup-qemu-action](https://github.com/docker/setup-qemu-action) | `3.3.0` | `3.6.0` | | [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) | `3.8.0` | `3.10.0` | | [docker/build-push-action](https://github.com/docker/build-push-action) | `6.13.0` | `6.15.0` | | [docker/metadata-action](https://github.com/docker/metadata-action) | `5.6.1` | `5.7.0` | | [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) | `6.2.0` | `6.5.0` | | [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) | `6.1.0` | `6.2.1` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.6.0` | `4.6.1` | Updates `docker/setup-qemu-action` from 3.3.0 to 3.6.0 - [Release notes](https://github.com/docker/setup-qemu-action/releases) - [Commits](53851d1459...29109295f8
) Updates `docker/setup-buildx-action` from 3.8.0 to 3.10.0 - [Release notes](https://github.com/docker/setup-buildx-action/releases) - [Commits](6524bf65af...b5ca514318
) Updates `docker/build-push-action` from 6.13.0 to 6.15.0 - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](ca877d9245...471d1dc4e0
) Updates `docker/metadata-action` from 5.6.1 to 5.7.0 - [Release notes](https://github.com/docker/metadata-action/releases) - [Commits](369eb591f4...902fa8ec7d
) Updates `golangci/golangci-lint-action` from 6.2.0 to 6.5.0 - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](ec5d18412c...2226d7cb06
) Updates `goreleaser/goreleaser-action` from 6.1.0 to 6.2.1 - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/v6.1.0...v6.2.1) Updates `actions/upload-artifact` from 4.6.0 to 4.6.1 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](65c4c4a1dd...4cec3d8aa0
) --- updated-dependencies: - dependency-name: docker/setup-qemu-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: docker/setup-buildx-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: docker/metadata-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: golangci/golangci-lint-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: goreleaser/goreleaser-action dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com> * remove run/deadline --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Caleb Doxsey <cdoxsey@pomerium.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-22.04
|
|
outputs:
|
|
sha-tag: ${{ steps.metadata.outputs.sha-tag }}
|
|
image: ${{ steps.metadata.outputs.image }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2
|
|
|
|
- name: Login to DockerHub
|
|
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567
|
|
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@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
|
|
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@471d1dc4e07e5cdedd4c2171150001c434f0b7a4
|
|
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-22.04
|
|
needs: publish
|
|
steps:
|
|
- name: Checkout Gitops Repo
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
|
|
with:
|
|
repository: pomerium/gitops-argocd
|
|
token: ${{ secrets.APPARITOR_GITHUB_TOKEN }}
|
|
|
|
- name: Bump psql environment
|
|
uses: mikefarah/yq@8bf425b4d1344db7cd469a8d10a390876e0c77fd
|
|
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@e348103e9026cc0eee72ae06630dbe30c8bf7a79
|
|
with:
|
|
commit_message: |
|
|
Bump test environment pomerium/pomerium
|
|
Image tag: ${{ needs.publish.outputs.sha-tag }}
|
|
Source Repo: ${{ github.repository }}@${{ github.sha }}
|