migrate to gitea packages
All checks were successful
Publish Package / build (push) Successful in 33s
All checks were successful
Publish Package / build (push) Successful in 33s
This commit is contained in:
parent
d6fee8f5f9
commit
f05dc28d2e
33
.gitea/workflows/docker-publish.yml
Normal file
33
.gitea/workflows/docker-publish.yml
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
name: Publish Package
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Set up Docker Buildx
|
||||||
|
uses: docker/setup-buildx-action@v2
|
||||||
|
|
||||||
|
- name: Log in to Gitea Docker Registry
|
||||||
|
run: |
|
||||||
|
echo ${{ secrets.PACKAGE_TOKEN }} | docker login -u ${{ secrets.PACKAGE_USERNAME }} --password-stdin git.weetile.uk
|
||||||
|
- name: Build Docker image
|
||||||
|
run: |
|
||||||
|
docker build -t git.weetile.uk/weetile/${{ gitea.event.repository.name }}:latest .
|
||||||
|
|
||||||
|
|
||||||
|
- name: Push Docker image to Gitea Package Registry
|
||||||
|
run: |
|
||||||
|
docker push git.weetile.uk/weetile/${{ gitea.event.repository.name }}:latest
|
||||||
|
|
32
.github/workflows/docker-publish.yml
vendored
32
.github/workflows/docker-publish.yml
vendored
@ -1,32 +0,0 @@
|
|||||||
name: Build and Publish Multi-Architecture Image
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up Docker Buildx
|
|
||||||
uses: docker/setup-buildx-action@v2
|
|
||||||
|
|
||||||
- name: Log in to Docker Hub
|
|
||||||
uses: docker/login-action@v2
|
|
||||||
with:
|
|
||||||
username: ${{ secrets.DOCKER_USERNAME }}
|
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
|
||||||
|
|
||||||
- name: Build and push multi-platform image
|
|
||||||
uses: docker/build-push-action@v5
|
|
||||||
with:
|
|
||||||
context: .
|
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
push: true
|
|
||||||
tags: ${{ secrets.DOCKER_USERNAME }}/fastfact:latest
|
|
Loading…
x
Reference in New Issue
Block a user