Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f
- name: setup qemu for multi-arch build
Expand All @@ -27,23 +30,23 @@ jobs:
BRANCH_TO_DOCKER=$(echo ${GITHUB_REF##*/} | tr '[:upper:]' '[:lower:]' | sed 's/[^a-z0-9._-]//g')
echo "VERSION=${BRANCH_TO_DOCKER}-${GITHUB_RUN_NUMBER}" >> $GITHUB_ENV
fi
- name: Log in to Docker Hub
- name: Log in to GitHub Container Registry
uses: docker/login-action@v2
with:
#registry: registry.hub.docker.com
username: wurstbrot
password: ${{ secrets.HUB_TOKEN }}
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: create and push yaml image
uses: docker/build-push-action@v3
with:
push: true
file: Dockerfile-yaml
platforms: linux/amd64,linux/arm64
tags: wurstbrot/dsomm-yaml-generation:${{ env.VERSION }},wurstbrot/dsomm-yaml-generation:latest
tags: ghcr.io/${{ github.repository_owner }}/dsomm-yaml-generation:${{ env.VERSION }},ghcr.io/${{ github.repository_owner }}/dsomm-yaml-generation:latest
- name: create and push dsomm image
uses: docker/build-push-action@v3
with:
push: true
platforms: linux/amd64,linux/arm64
tags: wurstbrot/dsomm:${{ env.VERSION }},wurstbrot/dsomm:latest
tags: ghcr.io/${{ github.repository_owner }}/dsomm:${{ env.VERSION }},ghcr.io/${{ github.repository_owner }}/dsomm:latest