1
0
mirror of https://github.com/stonith404/pingvin-share.git synced 2024-11-16 12:20:13 +01:00
pingvin-share/.github/workflows/build-docker-image.yml

25 lines
743 B
YAML
Raw Normal View History

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
2023-01-13 15:37:49 +01:00
uses: actions/checkout@v3
2022-10-10 17:59:02 +02:00
- name: Set up QEMU
2023-01-13 15:37:49 +01:00
uses: docker/setup-qemu-action@v2
2022-10-10 17:59:02 +02:00
- name: Set up Docker Buildx
2023-01-13 15:37:49 +01:00
uses: docker/setup-buildx-action@v2
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 }} \
--platform linux/amd64,linux/arm64 .