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

[Snyk] Security upgrade golang from 1.18 to 1.21.1 #136

[Snyk] Security upgrade golang from 1.18 to 1.21.1

[Snyk] Security upgrade golang from 1.18 to 1.21.1 #136

name: docker-build-debug
on:
push:
branches:
- main
pull_request:
release:
types: [published]
workflow_dispatch:
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}-debug
jobs:
build:
if: github.event.pull_request.head.repo.full_name == github.repository
runs-on: "ubuntu-latest"
permissions:
contents: write
packages: write
steps:
- name: "Checkout source code"
uses: "actions/checkout@v2"
- name: Docker meta
id: meta
uses: docker/metadata-action@v3
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to GHCR
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v2
with:
context: .
platforms: linux/amd64, linux/arm64
push: true
tags: ${{ steps.meta.outputs.tags }}
file: docker/debug.Dockerfile