Some checks failed
Build and Push Docker Image / build-push (push) Failing after 48m59s
Co-authored-by: Shaun Setlock <shaun@setlock.net> Co-authored-by: Shaun Setlock <shaunsetlock@protonmail.com> Reviewed-on: #16
45 lines
1.0 KiB
YAML
45 lines
1.0 KiB
YAML
name: Build and Push Docker Image
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build-push:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up QEMU
|
|
uses: docker/setup-qemu-action@v3
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Log in to Gitea Container Registry
|
|
uses: docker/login-action@v3
|
|
with:
|
|
registry: gitea.setlock.net
|
|
username: ${{ secrets.USER }}
|
|
password: ${{ secrets.TOKEN }}
|
|
|
|
- name: Extract Tag Name (if any)
|
|
id: get_tag
|
|
run: |
|
|
echo "GIT_TAG=${GITHUB_REF##*/}" >> $GITHUB_ENV
|
|
|
|
- name: Build and Push Docker Image
|
|
uses: docker/build-push-action@v5
|
|
with:
|
|
context: ./tools
|
|
push: true
|
|
platforms: linux/amd64,linux/arm64
|
|
tags: |
|
|
gitea.setlock.net/shaun/dev-container:latest
|
|
gitea.setlock.net/shaun/dev-container:${{ env.GIT_TAG }}
|