2023-07-20 23:10:15 +02:00
|
|
|
name: Docker Image CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2023-07-30 16:21:04 +02:00
|
|
|
branches: [ "cuttingedge" ]
|
2023-07-20 23:10:15 +02:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
2023-09-05 19:31:28 +02:00
|
|
|
uses: actions/checkout@v4
|
2023-07-20 23:10:15 +02:00
|
|
|
|
|
|
|
# https://github.com/docker/setup-qemu-action#usage
|
|
|
|
- name: Set up QEMU
|
2024-07-10 07:46:20 +02:00
|
|
|
uses: docker/setup-qemu-action@v3.1.0
|
2023-07-20 23:10:15 +02:00
|
|
|
|
|
|
|
# https://github.com/marketplace/actions/docker-setup-buildx
|
|
|
|
- name: Set up Docker Buildx
|
|
|
|
id: buildx
|
2024-04-18 22:52:38 +02:00
|
|
|
uses: docker/setup-buildx-action@v3.3.0
|
2023-07-20 23:10:15 +02:00
|
|
|
|
|
|
|
# https://github.com/docker/login-action#docker-hub
|
|
|
|
- name: Login to Docker Hub
|
|
|
|
uses: docker/login-action@v2
|
|
|
|
with:
|
|
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
|
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
|
|
|
|
|
|
|
# https://github.com/docker/build-push-action#multi-platform-image
|
|
|
|
- name: Build and push API
|
2024-07-10 07:46:17 +02:00
|
|
|
uses: docker/build-push-action@v6.3.0
|
2023-07-20 23:10:15 +02:00
|
|
|
with:
|
2023-07-21 00:14:07 +02:00
|
|
|
context: ./
|
2023-07-31 00:32:42 +02:00
|
|
|
file: ./Dockerfile
|
2023-07-20 23:10:15 +02:00
|
|
|
#platforms: linux/amd64,linux/arm64,linux/riscv64,linux/ppc64le,linux/s390x,linux/386,linux/mips64le,linux/mips64,linux/arm/v7,linux/arm/v6
|
2023-07-21 00:20:13 +02:00
|
|
|
platforms: linux/amd64
|
2023-07-20 23:10:15 +02:00
|
|
|
pull: true
|
|
|
|
push: true
|
|
|
|
tags: |
|
2023-08-01 18:21:29 +02:00
|
|
|
glax/tranga-api:cuttingedge
|