Skip to content

chore(deps): update dependency cilium/cilium to v1.19.0 #10

chore(deps): update dependency cilium/cilium to v1.19.0

chore(deps): update dependency cilium/cilium to v1.19.0 #10

Workflow file for this run

name: Dev Image CI Build
# Any change in triggers needs to be reflected in the concurrency group.
on:
pull_request_target:
types:
- opened
- synchronize
- reopened
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.after }}
cancel-in-progress: true
jobs:
build:
if: ${{ github.repository == 'cilium/cilium-cli' }}
runs-on: ubuntu-24.04
outputs:
tag: ${{ steps.tag.outputs.tag }}
repo_tags: ${{ steps.tag.outputs.repo_tags }}
digest: ${{ steps.docker_build.outputs.digest }}
steps:
- name: Getting image tag
id: tag
run: |
if [ ${{ github.event.pull_request.head.sha }} != "" ]; then
echo "tag=${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
echo "repo_tags=quay.io/${{ github.repository_owner }}/cilium-cli-ci:${{ github.event.pull_request.head.sha }}" >> $GITHUB_OUTPUT
else
echo "tag=${{ github.sha }}" >> $GITHUB_OUTPUT
echo "repo_tags=quay.io/${{ github.repository_owner }}/cilium-cli-ci:latest,quay.io/${{ github.repository_owner }}/cilium-cli-ci:${{ github.sha }}" >> $GITHUB_OUTPUT
fi
# SECURITY: Checking out untrusted code from pull_request_target
# This workflow uses pull_request_target which has write access to the base repository.
# The code being checked out may come from a forked repository and should be treated as untrusted.
# Build steps run in this job should not have access to any secrets or credentials.
- name: Checkout Untrusted Source Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
ref: ${{ steps.tag.outputs.tag }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
- name: Docker Build
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
id: docker_build
with:
context: .
platforms: linux/arm64,linux/amd64
push: false
tags: ${{ steps.tag.outputs.repo_tags }}
outputs: type=oci,dest=/tmp/image.tar
- name: Upload image artifact
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
with:
name: docker-image
path: /tmp/image.tar
retention-days: 1
push:
needs: build
if: ${{ github.repository == 'cilium/cilium-cli' }}
runs-on: ubuntu-24.04
environment: ci
steps:
- name: Download image artifact
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
with:
name: docker-image
path: /tmp
- name: Install skopeo
run: |
sudo apt-get update
sudo apt-get install -y skopeo
- name: Push image to registry
env:
QUAY_USERNAME: ${{ secrets.QUAY_CI_USERNAME }}
QUAY_PASSWORD: ${{ secrets.QUAY_CI_TOKEN }}
run: |
for tag in $(echo "${{ needs.build.outputs.repo_tags }}" | tr ',' '\n'); do
skopeo copy \
--multi-arch all \
--dest-creds "${QUAY_USERNAME}:${QUAY_PASSWORD}" \
oci-archive:/tmp/image.tar \
"docker://${tag}"
done