Skip to content

Commit

Permalink
Update docker-images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
slapcat authored Dec 23, 2024
1 parent 564099a commit 2c61f15
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/docker-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,18 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Build apache
run: docker build . --file images/apache-php/Dockerfile --tag apache-php:latest
run: docker build . --file images/apache-php/Dockerfile --tag ghcr.io/slapcat/apache-php:latest
- name: Build nextcloud
run: docker build . --file images/nextcloud-latest/Dockerfile --tag nextcloud:latest
run: docker build . --file images/nextcloud-latest/Dockerfile --tag ghcr.io/slapcat/nextcloud:latest

- name: Login to GitHub Container Registry
uses: docker/login-action@v2
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push apache
run: docker push ghcr.io/slapcat/nextcloud:latest
- name: Push nextcloud
run: docker push ghcr.io/slapcat/apache-php:latest

0 comments on commit 2c61f15

Please sign in to comment.