This commit is contained in:
Michael Grote 2024-09-02 20:55:07 +02:00
parent e4be0fdf99
commit 6d751aee36

View file

@ -39,9 +39,7 @@ jobs:
build:
steps:
- uses: https://github.com/actions/checkout@v4
if: success()
- name: Set up Docker Buildx
if: success()
uses: docker/setup-buildx-action@v3
# - name: Login to Docker Hub
# uses: docker/login-action@v3
@ -49,17 +47,14 @@ jobs:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Extract repository name
if: success()
id: meta
run: |
echo REPO_NAME=$(echo ${GITHUB_REPOSITORY} | awk -F"/" '{print $2}') >> $GITHUB_OUTPUT
- name: Extract branch name
if: success()
shell: bash
run: echo "REPO_BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
id: extract_branch
- name: Build and push Docker image
if: success()
uses: https://github.com/docker/build-push-action@v5
with:
context: .