Merge remote-tracking branch 'upstream/master' into dev-tbyte #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Docker Container Builds | |
on: | |
push: | |
branches: | |
- master | |
- dev | |
- dev-tbyte | |
tags: | |
- "release" | |
- "v*.*.*" | |
env: | |
DOCKER_PUSH: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Populate Docker metadata | |
id: meta | |
uses: docker/metadata-action@v4 | |
with: | |
images: tetrabyteit/securesend | |
flavor: | | |
latest=false | |
tags: | | |
type=match,pattern=release | |
type=schedule,pattern=latest | |
type=semver,pattern={{version}} | |
type=semver,pattern={{major}}.{{minor}} | |
type=semver,pattern={{major}} | |
type=semver,pattern=latest | |
type=ref,event=branch | |
- name: Login to DockerHub | |
uses: docker/login-action@v2 | |
with: | |
username: ${{ secrets.DOCKER_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Build and push pwpush Docker images | |
uses: docker/build-push-action@v4 | |
with: | |
file: ./containers/docker/pwpush/Dockerfile | |
platforms: linux/amd64 | |
provenance: false | |
push: true | |
labels: ${{ steps.meta.outputs.labels }} | |
tags: ${{ steps.meta.outputs.tags }} | |
cache-from: type=registry,ref=tetrabyteit/securesend:buildcache | |
cache-to: type=registry,ref=tetrabyteit/securesend:buildcache,mode=max |