This repository has been archived on 2024-09-13. You can view files and clone it, but cannot push or open issues or pull requests.
check-da-helm/.github/workflows/container-stable.yaml

86 lines
2.5 KiB
YAML
Raw Normal View History

2023-01-16 20:05:07 +00:00
---
name: "Stable container"
on:
push:
2023-02-07 11:15:34 +00:00
# branches:
2023-02-07 11:21:28 +00:00
# - main
2023-02-07 11:15:34 +00:00
# paths:
2023-02-07 11:21:28 +00:00
# - "src/**"
2023-01-16 20:05:07 +00:00
jobs:
containerization:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set action link variable
run: echo "LINK=$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> $GITHUB_ENV
- name: Set up QEMU
uses: docker/setup-qemu-action@master
with:
platforms: all
- name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@master
- name: Login to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
2023-02-07 11:16:59 +00:00
- name: Build base
2023-01-16 20:05:07 +00:00
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
2023-02-07 11:15:34 +00:00
push: false
2023-01-16 20:05:07 +00:00
tags: |
2023-02-07 11:15:34 +00:00
check-da-helm-base
2023-01-16 20:05:07 +00:00
labels: |
action_id=${{ github.action }}
action_link=${{ env.LINK }}
actor=${{ github.actor }}
sha=${{ github.sha }}
ref=${{ github.ref }}
2023-02-07 11:21:28 +00:00
- name: Build helmfile
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./dockerfiles
file: ./Dockerfile-helmfile
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/allanger/${{ env.GITHUB_REPOSITORY }}-helmfile:latest
ghcr.io/allanger/${{ env.GITHUB_REPOSITORY }}-helmfile:stable
labels: |
action_id=${{ github.action }}
action_link=${{ env.LINK }}
actor=${{ github.actor }}
sha=${{ github.sha }}
ref=${{ github.ref }}
2023-02-07 11:15:34 +00:00
2023-02-07 11:21:28 +00:00
- name: Build argo
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./dockerfiles
file: ./Dockerfile-argo
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/allanger/${{ env.GITHUB_REPOSITORY }}-argo:latest
ghcr.io/allanger/${{ env.GITHUB_REPOSITORY }}-argo:stable
labels: |
action_id=${{ github.action }}
action_link=${{ env.LINK }}
actor=${{ github.actor }}
sha=${{ github.sha }}
ref=${{ github.ref }}