Skip to content
This repository has been archived by the owner on Aug 14, 2024. It is now read-only.

chore(container): update image golang ( a400dc7 → 8e529b6 ) #2

chore(container): update image golang ( a400dc7 → 8e529b6 )

chore(container): update image golang ( a400dc7 → 8e529b6 ) #2

Workflow file for this run

---
name: Build and release
on:
push:
tags:
- "v*"
workflow_dispatch:
concurrency:
group: build-and-release-app
cancel-in-progress: false
permissions:
contents: write
packages: write
jobs:
build_container:
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to image registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Docker meta
id: meta
uses: docker/metadata-action@v5
with:
images: |
ghcr.io/${{ github.repository_owner }}/k8s-ycl
tags: |
type=ref,event=tag
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
file: ./Dockerfile
platforms: linux/amd64,linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Create GitHub release
# Create a release when a tag is pushed
if: success() && startsWith(github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true