forked from kosmos-io/coredns
-
Notifications
You must be signed in to change notification settings - Fork 0
33 lines (30 loc) · 965 Bytes
/
docker.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Docker Release
on:
release:
types: [published]
workflow_dispatch:
inputs:
release:
description: "Release (e.g., v1.9.0)"
required: true
permissions:
packages: write
contents: read
jobs:
docker-release:
runs-on: ubuntu-latest
env:
RELEASE: ${{ github.event.inputs.release || github.event.release.tag_name }}
steps:
- uses: actions/checkout@v4
- name: Build Docker Images
run: make VERSION=${RELEASE:1} GITHUB_USER=${{ github.actor }} -f Makefile.docker release
- name: Set up qemu
uses: docker/setup-qemu-action@v2
- name: Login registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
- name: Show Docker Images
run: docker images
- name: Publish Docker Images
run: make VERSION=${RELEASE:1} GITHUB_USER=${{ github.actor }} -f Makefile.docker docker-push