Skip to content

Merge pull request #25 from rancher/renovate/all #12

Merge pull request #25 from rancher/renovate/all

Merge pull request #25 from rancher/renovate/all #12

Workflow file for this run

name : Publish Images
on:
push:
tags:
- "*"
env:
REGISTRY: docker.io
jobs:
push:
name : Build and push PushProx images
runs-on : ubuntu-latest
permissions:
contents : read
id-token: write
steps:
- name : "Read Secrets"
uses : rancher-eio/read-vault-secrets@main
with:
secrets: |
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials username | DOCKER_USERNAME ;
secret/data/github/repo/${{ github.repository }}/dockerhub/rancher/credentials password | DOCKER_PASSWORD
- name : Checkout repository
uses: actions/checkout@v4
- name : Setup go
uses: actions/setup-go@v5
with:
go-version: 1.23
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Log in to the Container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ env.DOCKER_USERNAME }}
password: ${{ env.DOCKER_PASSWORD }}
- name : Build, test & validate
run : make ci
# setup tag name
- if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
echo TAG_NAME=$(echo $GITHUB_REF | sed -e "s|refs/tags/||") >> $GITHUB_ENV
- name: Build and push PushProx client image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.client
push: true
tags: ${{ env.REGISTRY }}/rancher/pushprox-client:${{ env.TAG_NAME }}-client
platforms: linux/amd64,linux/arm64
- name: Build and push PushProx proxy image
uses: docker/build-push-action@v6
with:
context: .
file: Dockerfile.proxy
push: true
tags: ${{ env.REGISTRY }}/rancher/pushprox-proxy:${{ env.TAG_NAME }}-proxy
platforms : linux/amd64,linux/arm64