docker-myarch/.gitea/workflows/default.yaml
Emiliano Vavassori 14ea28aa25
Some checks failed
Build Image / BuildImage (push) Failing after 11s
Possibile sistemazione problema di sintassi con secret.
2024-03-10 01:46:26 +01:00

45 lines
1.2 KiB
YAML

---
name: Build Image
on: [ push ]
jobs:
BuildImage:
runs-on: ubuntu-latest
container:
image: catthehacker/ubuntu:act-latest
env:
DOCKER_ORG: ${{ secrets.SYS42_REGISTRY_ORG }}
DOCKER_USERNAME: ${{ secrets.SYS42_REGISTRY_USERNAME }}
DOCKER_IMAGE_NAME: myarch
DOCKER_VERSION: latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
- name: Set up Docker BuildX
uses: docker/setup-buildx-action@v2
with:
config-inline: |
[registry.${{ secrets.SYS42_REGISTRY_ORG }}]
http = false
insecure = false
- name: Login to Registry
uses: docker/login-action@v2
with:
registry: ${{ secrets.SYS42_REGISTRY_ORG }}
username: ${{ secrets.SYS42_REGISTRY_USERNAME }}
password: ${{ secrets.SYS42_REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
file: ./Dockerfile
push: true
tags: ${{ env.DOCKER_ORG }}/${{ env.DOCKER_USERNAME }}/${{ env.DOCKER_IMAGE_NAME }}:${{ env.DOCKER_VERSION }}