Skip to content

Merge pull request #6 from flownative/task/update-jwilder-nginx-proxy #20

Merge pull request #6 from flownative/task/update-jwilder-nginx-proxy

Merge pull request #6 from flownative/task/update-jwilder-nginx-proxy #20

Workflow file for this run

name: Build Docker images
on:
repository_dispatch:
types: [nginx-images-built]
push:
branches-ignore:
- '**'
tags:
- 'v*.*.*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: 'master'
fetch-depth: 100
- name: Determine latest version
id: latest_version
uses: flownative/action-git-latest-release@v1
- run: |
sudo chmod -R ugo+rwX . && shopt -s dotglob && rm -rf *
- uses: actions/checkout@v4
with:
ref: ${{ steps.latest_version.outputs.tag }}
fetch-depth: 100
- name: Set up QEMU
id: qemu
uses: docker/setup-qemu-action@v3
-
name: Set up Docker Buildx
id: buildx
uses: docker/setup-buildx-action@v3
- name: Login to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_IO_REGISTRY_USER }}
password: ${{ secrets.DOCKER_IO_REGISTRY_PASSWORD }}
- name: Login to Google Artifacts Registry
uses: docker/login-action@v3
with:
registry: europe-docker.pkg.dev/flownative/docker
username: '_json_key'
password: ${{ secrets.GOOGLE_ARTIFACTS_PASSWORD_DOCKER }}
- name: Build Docker image
uses: docker/build-push-action@v5
with:
context: .
platforms: linux/amd64,linux/arm64
push: true
tags: |
flownative/localbeach-nginx-proxy:${{ steps.latest_version.outputs.version }}
flownative/localbeach-nginx-proxy:latest
europe-docker.pkg.dev/flownative/docker/localbeach-nginx-proxy:${{ steps.latest_version.outputs.version }}
europe-docker.pkg.dev/flownative/docker/localbeach-nginx-proxy:latest