Skip to content

Commit

Permalink
prepare push to dockerhub
Browse files Browse the repository at this point in the history
  • Loading branch information
Dirk Klawitter committed Jul 19, 2024
1 parent 97e2a85 commit 7d2cc02
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/Build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,21 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

# docker tag <name of the image> <dockerhub username> <name of your repo> <version>
- name: Set outputs for docker build
id: vars
run: |
echo "image_name=ghcr.io/${{ github.repository }}" >> $GITHUB_OUTPUT
echo "image_name=${{ github.repository }}" >> $GITHUB_OUTPUT
echo "image_tag=$(git rev-parse --short HEAD)-${{ github.run_id }}" >> $GITHUB_OUTPUT
# - name: Login to Docker Hub
# uses: docker/login-action@v3
# with:
# username: ${{ secrets.DOCKERHUB_USERNAME }}
# password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build Docker image and push to GitHub Container Registry
uses: docker/build-push-action@v4
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
Expand Down

0 comments on commit 7d2cc02

Please sign in to comment.