2023-01-17 21:35:35 +00:00
|
|
|
---
|
|
|
|
name: "Stable container"
|
|
|
|
|
2023-01-24 11:49:34 +00:00
|
|
|
# on:
|
|
|
|
# push:
|
|
|
|
# branches:
|
|
|
|
# - main
|
2023-01-17 21:35:35 +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 }}
|
|
|
|
|
|
|
|
- name: Build
|
2023-01-24 11:49:34 +00:00
|
|
|
uses: docker/build-push-action@v3
|
2023-01-17 21:35:35 +00:00
|
|
|
with:
|
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
context: .
|
|
|
|
file: ./Dockerfile
|
|
|
|
platforms: linux/amd64,linux/arm64
|
|
|
|
push: true
|
|
|
|
tags: |
|
2023-01-18 12:28:57 +00:00
|
|
|
ghcr.io/${{ github.repository }}:stable
|
|
|
|
ghcr.io/${{ github.repository }}:latest
|
2023-01-17 21:35:35 +00:00
|
|
|
labels: |
|
|
|
|
action_id=${{ github.action }}
|
|
|
|
action_link=${{ env.LINK }}
|
|
|
|
actor=${{ github.actor }}
|
|
|
|
sha=${{ github.sha }}
|
|
|
|
ref=${{ github.ref }}
|