Aggiornamento per forgejo.
All checks were successful
Build Image / BuildImage (push) Successful in 2m41s
All checks were successful
Build Image / BuildImage (push) Successful in 2m41s
This commit is contained in:
parent
7c92a1d8c3
commit
0443df5017
1 changed files with 4 additions and 4 deletions
44
.forgejo/workflows/default.yaml
Normal file
44
.forgejo/workflows/default.yaml
Normal file
|
@ -0,0 +1,44 @@
|
|||
---
|
||||
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: https://github.com/docker/setup-qemu-action@v2
|
||||
|
||||
- name: Set up Docker BuildX
|
||||
uses: https://github.com/docker/setup-buildx-action@v2
|
||||
with:
|
||||
config-inline: |
|
||||
[registry."git.sys42.eu"]
|
||||
http = false
|
||||
insecure = false
|
||||
|
||||
- name: Login to Registry
|
||||
uses: https://github.com/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: https://github.com/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 }}
|
Loading…
Add table
Add a link
Reference in a new issue