wrapperr/.github/workflows/docker-image-beta.yml

50 lines
1.3 KiB
YAML
Raw Normal View History

2022-12-07 15:20:38 +00:00
name: Docker Image for Pushes
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
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
ghcr.io/${{ github.repository_owner }}/wrapperr
tags: |
type-raw,value=beta
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:20:38 +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 }}
password: ${{ secrets.GITHUB_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 }}