Skip to content
This repository has been archived by the owner on Jan 29, 2024. It is now read-only.

Commit

Permalink
fix: use standard docker gh action
Browse files Browse the repository at this point in the history
  • Loading branch information
rmoesbergen committed Oct 6, 2023
1 parent fb8b957 commit 6f85ae9
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ on:
- cron: '0 8 1 * *'
workflow_dispatch: {}

env:
IMAGE_NAME: docker.pkg.github.com/djoamersfoort/djo-fotoalbum/fotoalbum:main

jobs:
# Push image to GitHub Packages.
# See also https://docs.docker.com/docker-hub/builds/
Expand All @@ -22,16 +19,17 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Build image
run: docker build . --file Dockerfile --tag $IMAGE_NAME

- name: Docker Login
uses: docker/[email protected]
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push image
run: |
docker push $IMAGE_NAME
- name: Build and push Docker image
uses: docker/[email protected]
with:
file: Dockerfile
context: .
push: true
tags: ghcr.io/djoamersfoort/djo-fotoalbum/fotoalbum:main

0 comments on commit 6f85ae9

Please sign in to comment.