Update build-images.yml

This commit is contained in:
Zoey 2023-02-23 23:00:28 +01:00 committed by GitHub
parent 087acc8b56
commit b75bc80c4b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -29,8 +29,18 @@ jobs:
uses: docker/setup-buildx-action@v2
with:
install: true
- name: Login to DockerHub
uses: docker/login-action@v2
if: ${{ github.ref != 'refs/heads/master' }} && ${{ github.event_name != 'pull_request' }} || ${{ github.event_name == 'schedule' }}
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Login to GitHub Container Registry
uses: docker/login-action@v2
if: ${{ github.ref != 'refs/heads/master' }} && ${{ github.event_name != 'pull_request' }} || ${{ github.event_name == 'schedule' }}
with:
registry: ghcr.io
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ github.token }}
- name: Docker Build
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
run: ./buildx.sh ${{ github.event_name }} ${{ matrix.destination-image }} ${{ matrix.base-image }}