1
0
mirror of https://github.com/thib8956/nginx-proxy synced 2025-02-24 01:38:15 +00:00

ci: publish the alpine image to ghcr.io too

This commit is contained in:
Nicolas Duchon 2022-03-04 11:10:14 +01:00 committed by GitHub
parent 5ab320d82a
commit 993e5f8282
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -119,6 +119,7 @@ jobs:
uses: docker/metadata-action@v3 uses: docker/metadata-action@v3
with: with:
images: | images: |
ghcr.io/nginx-proxy/nginx-proxy
nginxproxy/nginx-proxy nginxproxy/nginx-proxy
jwilder/nginx-proxy jwilder/nginx-proxy
tags: | tags: |
@ -142,6 +143,13 @@ jobs:
with: with:
username: ${{ secrets.DOCKERHUB_USERNAME }} username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }} password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Log in to GitHub Container Registry
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the Alpine based image - name: Build and push the Alpine based image
if: github.ref == 'refs/heads/main' if: github.ref == 'refs/heads/main'