2022-10-11 22:35:13 +02:00
|
|
|
name: Create Docker Image
|
2022-05-11 14:28:10 +02:00
|
|
|
|
|
|
|
on:
|
2022-10-17 23:05:39 +02:00
|
|
|
release:
|
|
|
|
types: [published]
|
2022-05-11 14:28:10 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: checkout code
|
|
|
|
uses: actions/checkout@v2
|
2022-10-10 17:59:02 +02:00
|
|
|
- name: Set up QEMU
|
|
|
|
uses: docker/setup-qemu-action@v1
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
uses: docker/setup-buildx-action@v1
|
2022-05-11 14:28:10 +02:00
|
|
|
- name: login to docker registry
|
2022-05-11 19:32:15 +02:00
|
|
|
run: echo "${{ secrets.DOCKER_PASSWORD }}" | docker login -u "${{ secrets.DOCKER_USERNAME }}" --password-stdin
|
2022-10-11 22:35:13 +02:00
|
|
|
- name: Build the image
|
2022-05-11 14:28:10 +02:00
|
|
|
run: |
|
2022-10-11 22:35:13 +02:00
|
|
|
docker buildx build --push \
|
|
|
|
--tag stonith404/pingvin-share:latest \
|
2022-10-17 23:05:39 +02:00
|
|
|
--tag stonith404/pingvin-share:${{ github.ref_name }} \
|
2022-10-14 00:20:31 +02:00
|
|
|
--platform linux/amd64,linux/arm64 .
|