2022-12-07 15:17:50 +00:00
|
|
|
name: Docker Image for Releases
|
2022-12-07 14:55:10 +00:00
|
|
|
|
|
|
|
on:
|
2022-12-07 15:17:50 +00:00
|
|
|
release:
|
|
|
|
types: [published]
|
2022-12-07 14:55:10 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
2022-12-12 07:52:50 +00:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
packages: write
|
2022-12-07 14:55:10 +00:00
|
|
|
|
|
|
|
steps:
|
2022-12-09 10:42:46 +00:00
|
|
|
- uses: actions/checkout@v3
|
2022-12-09 16:36:41 +00:00
|
|
|
- name: Set up Docker metadata
|
|
|
|
id: meta
|
|
|
|
uses: docker/metadata-action@v3
|
|
|
|
with:
|
|
|
|
images: |
|
|
|
|
aunefyren/wrapperr
|
2022-12-12 08:13:09 +00:00
|
|
|
ghcr.io/${{ github.repository }}
|
2022-12-09 16:36:41 +00:00
|
|
|
tags: |
|
|
|
|
type-raw,value=${{ github.ref_name }}
|
|
|
|
flavor: |
|
|
|
|
latest=true
|
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v2
|
|
|
|
with:
|
|
|
|
platforms: arm64
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
|
|
|
uses: docker/setup-buildx-action@v2
|
2022-12-09 10:42:46 +00:00
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v2
|
2022-12-07 15:17:50 +00:00
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKER_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
2022-12-09 16:36:41 +00:00
|
|
|
- name: Login to GHCR
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
registry: ghcr.io
|
|
|
|
username: ${{ github.repository_owner }}
|
2022-12-17 13:36:26 +00:00
|
|
|
password: ${{ secrets.GIT_HUB_TOKEN }}
|
2022-12-09 10:42:46 +00:00
|
|
|
- name: Build and push
|
|
|
|
uses: docker/build-push-action@v3
|
|
|
|
with:
|
2022-12-09 16:36:41 +00:00
|
|
|
builder: ${{ steps.buildx.outputs.name }}
|
|
|
|
file: ./Dockerfile
|
|
|
|
platforms: linux/amd64,linux/arm64
|
2022-12-09 10:42:46 +00:00
|
|
|
push: true
|
|
|
|
context: .
|
2022-12-09 16:36:41 +00:00
|
|
|
tags: ${{ steps.meta.outputs.tags }}
|