🏗️ Feature: Forgejo Actions Fourth Draft
This commit is contained in:
parent
b0f689414a
commit
58b8e8df02
1 changed files with 25 additions and 11 deletions
|
@ -24,17 +24,31 @@ jobs:
|
||||||
- name: Testing..
|
- name: Testing..
|
||||||
run: |
|
run: |
|
||||||
echo "No Testing to do currently.."
|
echo "No Testing to do currently.."
|
||||||
- name: Build image
|
- name: Docker meta
|
||||||
run: |
|
id: meta
|
||||||
podman build -t notatio .
|
uses: docker/metadata-action@v5
|
||||||
Push-Image:
|
with:
|
||||||
runs-on: website
|
# list of Docker images to use as base name for tags
|
||||||
steps:
|
images: |
|
||||||
- name: Push image to registry
|
notatio/notatio
|
||||||
run: |
|
# generate Docker tags based on the following events/attributes
|
||||||
podman login -u ${{ secrets.USERNAME }} -p ${{ secrets.PASSWORD }} docker.io
|
tags: |
|
||||||
podman push notatio ${{ env.registry }}:${{ env.TAG }}
|
type=semver,pattern={{version}}
|
||||||
podman logout ${{ env.registry }}
|
type=semver,pattern={{major}}.{{minor}}
|
||||||
|
type=semver,pattern={{major}}
|
||||||
|
type=sha
|
||||||
|
- name: Login to Docker Hub
|
||||||
|
if: github.event_name != 'pull_request'
|
||||||
|
uses: docker/login-action@v3
|
||||||
|
with:
|
||||||
|
username: ${{ vars.DOCKERHUB_USERNAME }}
|
||||||
|
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||||
|
- name: Build and push
|
||||||
|
uses: docker/build-push-action@v6
|
||||||
|
with:
|
||||||
|
push: ${{ github.event_name != 'pull_request' }}
|
||||||
|
tags: ${{ steps.meta.outputs.tags }}
|
||||||
|
labels: ${{ steps.meta.outputs.labels }}
|
||||||
Cleanup:
|
Cleanup:
|
||||||
runs-on: website
|
runs-on: website
|
||||||
steps:
|
steps:
|
||||||
|
|
Loading…
Reference in a new issue