mirror of
https://github.com/pomerium/pomerium.git
synced 2025-04-29 02:16:28 +02:00
Bumps the github-actions group with 7 updates: | Package | From | To | | --- | --- | --- | | [docker/login-action](https://github.com/docker/login-action) | `3.3.0` | `3.4.0` | | [actions/setup-go](https://github.com/actions/setup-go) | `5.3.0` | `5.4.0` | | [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) | `6.5.0` | `7.0.0` | | [actions/setup-node](https://github.com/actions/setup-node) | `4.2.0` | `4.3.0` | | [goreleaser/goreleaser-action](https://github.com/goreleaser/goreleaser-action) | `6.2.1` | `6.3.0` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `4.6.1` | `4.6.2` | | [actions/setup-python](https://github.com/actions/setup-python) | `5.4.0` | `5.5.0` | Updates `docker/login-action` from 3.3.0 to 3.4.0 - [Release notes](https://github.com/docker/login-action/releases) - [Commits](9780b0c442...74a5d14239
) Updates `actions/setup-go` from 5.3.0 to 5.4.0 - [Release notes](https://github.com/actions/setup-go/releases) - [Commits](f111f3307d...0aaccfd150
) Updates `golangci/golangci-lint-action` from 6.5.0 to 7.0.0 - [Release notes](https://github.com/golangci/golangci-lint-action/releases) - [Commits](2226d7cb06...1481404843
) Updates `actions/setup-node` from 4.2.0 to 4.3.0 - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](1d0ff469b7...cdca7365b2
) Updates `goreleaser/goreleaser-action` from 6.2.1 to 6.3.0 - [Release notes](https://github.com/goreleaser/goreleaser-action/releases) - [Commits](https://github.com/goreleaser/goreleaser-action/compare/v6.2.1...v6.3.0) Updates `actions/upload-artifact` from 4.6.1 to 4.6.2 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](4cec3d8aa0...ea165f8d65
) Updates `actions/setup-python` from 5.4.0 to 5.5.0 - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](42375524e2...8d9ed9ac5c
) --- updated-dependencies: - dependency-name: docker/login-action dependency-version: 3.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/setup-go dependency-version: 5.4.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: golangci/golangci-lint-action dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: actions/setup-node dependency-version: 4.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: goreleaser/goreleaser-action dependency-version: 6.3.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 4.6.2 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/setup-python dependency-version: 5.5.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... 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-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@74a5d142397b4f367a81961eba4e8cd7edddf772
|
|
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 }}
|