Update actions

This commit is contained in:
Nikolai Rodionov 2023-02-14 22:12:32 +01:00
parent 08531e7f9c
commit ad763c299a
2 changed files with 54 additions and 25 deletions

View File

@ -3,10 +3,8 @@ name: "Stable container"
on: on:
push: push:
# branches: branches:
# - main - main
# paths:
# - "src/**"
jobs: jobs:
containerization: containerization:
@ -32,22 +30,22 @@ jobs:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }} password: ${{ secrets.CR_PAT }}
# - name: Build base - name: Build base
# uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
# with: with:
# builder: ${{ steps.buildx.outputs.name }} builder: ${{ steps.buildx.outputs.name }}
# context: . context: .
# file: ./Dockerfile file: ./Dockerfile
# platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
# push: true push: true
# tags: | tags: |
# ghcr.io/${{ github.repository }}-base:latest ghcr.io/${{ github.repository }}-base:latest
# labels: | labels: |
# action_id=${{ github.action }} action_id=${{ github.action }}
# action_link=${{ env.LINK }} action_link=${{ env.LINK }}
# actor=${{ github.actor }} actor=${{ github.actor }}
# sha=${{ github.sha }} sha=${{ github.sha }}
# ref=${{ github.ref }} ref=${{ github.ref }}
- name: Build helmfile - name: Build helmfile
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:

View File

@ -1,5 +1,5 @@
--- ---
name: "Version container" name: "Versioned container"
on: on:
push: push:
@ -27,15 +27,13 @@ jobs:
- name: Set up Docker Buildx - name: Set up Docker Buildx
id: buildx id: buildx
uses: docker/setup-buildx-action@master uses: docker/setup-buildx-action@master
- name: Login to GitHub Container Registry - name: Login to GitHub Container Registry
uses: docker/login-action@v1 uses: docker/login-action@v1
with: with:
registry: ghcr.io registry: ghcr.io
username: ${{ github.repository_owner }} username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }} password: ${{ secrets.CR_PAT }}
- name: Build base
- name: Build
uses: docker/build-push-action@v2 uses: docker/build-push-action@v2
with: with:
builder: ${{ steps.buildx.outputs.name }} builder: ${{ steps.buildx.outputs.name }}
@ -44,7 +42,40 @@ jobs:
platforms: linux/amd64,linux/arm64 platforms: linux/amd64,linux/arm64
push: true push: true
tags: | tags: |
ghcr.io/${{ github.repository }}:${{ env.TAG }} ghcr.io/${{ github.repository }}-base:${{ env.TAG }}
labels: |
action_id=${{ github.action }}
action_link=${{ env.LINK }}
actor=${{ github.actor }}
sha=${{ github.sha }}
ref=${{ github.ref }}
- name: Build helmfile
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./dockerfiles
file: ./dockerfiles/Dockerfile-helmfile
platforms: linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}-helmfile:${{ env.TAG }}
labels: |
action_id=${{ github.action }}
action_link=${{ env.LINK }}
actor=${{ github.actor }}
sha=${{ github.sha }}
ref=${{ github.ref }}
- name: Build argo
uses: docker/build-push-action@v2
with:
builder: ${{ steps.buildx.outputs.name }}
context: ./dockerfiles
file: ./dockerfiles/Dockerfile-argo
platforms: linux/amd64,linux/arm64
push: true
tags: |
ghcr.io/${{ github.repository }}-argo:${{ env.TAG }}
labels: | labels: |
action_id=${{ github.action }} action_id=${{ github.action }}
action_link=${{ env.LINK }} action_link=${{ env.LINK }}