Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
132 changes: 66 additions & 66 deletions .github/workflows/publish_pipedv1_exp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,75 +49,75 @@ jobs:
./.artifacts/pipedv1_${{ inputs.version }}_darwin_amd64
./.artifacts/pipedv1_${{ inputs.version }}_darwin_arm64

container_image:
runs-on: ubuntu-24.04
permissions:
contents: read
packages: write
strategy:
matrix:
container_registry:
- ghcr.io/pipe-cd
- gcr.io/pipecd
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
# container_image:
# runs-on: ubuntu-24.04
# permissions:
# contents: read
# packages: write
# strategy:
# matrix:
# container_registry:
# - ghcr.io/pipe-cd
# - gcr.io/pipecd
# steps:
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# with:
# fetch-depth: 0

# Setup QEMU and Buildx.
- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1
# # Setup QEMU and Buildx.
# - name: Set up QEMU
# uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0
# - name: Set up Docker Buildx
# uses: docker/setup-buildx-action@c47758b77c9736f4b2ef4073d4d51994fabfe349 # v3.7.1

# Login to push container images.
- name: Log in to GHCR
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ${{ env.GHCR }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
# # Login to push container images.
# - name: Log in to GHCR
# uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
# with:
# registry: ${{ env.GHCR }}
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}

- name: Log in to GCR
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
with:
registry: ${{ env.GCR }}
username: _json_key
password: ${{ secrets.GCR_SA }}
# - name: Log in to GCR
# uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.0
# with:
# registry: ${{ env.GCR }}
# username: _json_key
# password: ${{ secrets.GCR_SA }}

# Building and pushing container images.
- name: Build and push pipedv1 experimental image
uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
with:
push: true
context: .
file: cmd/pipedv1/Dockerfile
tags: ${{ matrix.container_registry }}/pipedv1-exp:${{ inputs.version }}
platforms: linux/amd64,linux/arm64
# parameter to use inline cache. ref; https://docs.docker.com/build/ci/github-actions/cache/#inline-cache
cache-from: type=registry,ref=${{ matrix.container_registry }}/pipedv1-exp:latest
cache-to: type=inline
# # Building and pushing container images.
# - name: Build and push pipedv1 experimental image
# uses: docker/build-push-action@48aba3b46d1b1fec4febb7c5d0c644b249a11355 # v6.10.0
# with:
# push: true
# context: .
# file: cmd/pipedv1/Dockerfile
# tags: ${{ matrix.container_registry }}/pipedv1-exp:${{ inputs.version }}
# platforms: linux/amd64,linux/arm64
# # parameter to use inline cache. ref; https://docs.docker.com/build/ci/github-actions/cache/#inline-cache
# cache-from: type=registry,ref=${{ matrix.container_registry }}/pipedv1-exp:latest
# cache-to: type=inline

image_chart:
runs-on: ubuntu-24.04
needs: container_image
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
# image_chart:
# runs-on: ubuntu-24.04
# needs: container_image
# permissions:
# contents: read
# packages: write
# steps:
# - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
# with:
# fetch-depth: 0

# Building and pushing Helm charts.
- name: Install helm
uses: azure/setup-helm@v4
with:
version: ${{ env.HELM_VERSION }}
- name: Login to OCI using Helm
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ env.GHCR }} --username ${{ github.repository_owner }} --password-stdin
- name: Publish helm charts
run: |
make build/chart MOD=pipedv1-exp VERSION=${{ inputs.version }}
helm push .artifacts/pipedv1-exp-${{ inputs.version }}.tgz oci://${{ env.GHCR }}/pipe-cd/chart
# # Building and pushing Helm charts.
# - name: Install helm
# uses: azure/setup-helm@v4
# with:
# version: ${{ env.HELM_VERSION }}
# - name: Login to OCI using Helm
# run: |
# echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ env.GHCR }} --username ${{ github.repository_owner }} --password-stdin
# - name: Publish helm charts
# run: |
# make build/chart MOD=pipedv1-exp VERSION=${{ inputs.version }}
# helm push .artifacts/pipedv1-exp-${{ inputs.version }}.tgz oci://${{ env.GHCR }}/pipe-cd/chart