Skip to content

chore(deps): update docker/build-push-action digest to ca877d9 #119

chore(deps): update docker/build-push-action digest to ca877d9

chore(deps): update docker/build-push-action digest to ca877d9 #119

Workflow file for this run

name: buildx
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '22 4 * * 0'
push:
branches:
- 'master'
env:
PLATFORMS: linux/amd64 #,linux/arm64
jobs:
buildx:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Set up QEMU
uses: docker/setup-qemu-action@53851d14592bedcffcf25ea515637cff71ef929a # v3
- name: Set up Buildx
uses: docker/setup-buildx-action@6524bf65af31da8d45b59e8c27de4bd072b392f5 # v3
- name: Set up variable repository name
run: echo "IMAGE_NAME=${{ github.repository }}" >> $GITHUB_ENV
- name: Login to ghcr.io
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Initial Buildx
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6
with:
context: .
file: Containerfile
tags: ghcr.io/${{ env.IMAGE_NAME }}:testing
platforms: ${{ env.PLATFORMS }}
provenance: false
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
- name: Load Built Image and Get Variables
id: vars
run: |
VER_FULL=$(docker run --rm ghcr.io/${{ env.IMAGE_NAME }}:testing rpm -q --queryformat '%{VERSION}' zpa-connector)
echo "VER_FULL=$VER_FULL" >> $GITHUB_ENV
- name: Buildx and Push
uses: docker/build-push-action@ca877d9245402d1537745e0e356eab47c3520991 # v6
with:
context: .
file: Containerfile
tags: |
ghcr.io/${{ env.IMAGE_NAME }}:latest
ghcr.io/${{ env.IMAGE_NAME }}:${{ env.VER_FULL }}
platforms: ${{ env.PLATFORMS }}
cache-from: type=gha
cache-to: type=gha,mode=max
push: true
provenance: false