Skip to content

refactor: make majority of responses ephemeral #74

refactor: make majority of responses ephemeral

refactor: make majority of responses ephemeral #74

Workflow file for this run

name: Docker
on:
push:
branches:
- master
- dev
release:
types:
- published
pull_request:
jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Docker Metadata
id: meta
uses: docker/metadata-action@v3
with:
images: ghcr.io/${{ github.repository }}/sandwich-delivery
flavor: |
latest=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
tags: |
type=raw,value=latest,enable=${{ github.event_name == 'release' && github.event.release.prerelease == false }}
type=raw,value=nightly,enable=${{ github.event_name == 'release' && github.event.release.prerelease == true }}
type=ref,enable=true,event=branch
type=ref,enable=true,event=pr
type=raw,value=${{ github.event.release.tag_name }},enable=${{ github.event_name == 'release' }}
type=raw,value=${{ github.event.release.name }},enable=${{ github.event_name == 'release' }}
- name: Setup QEMU
uses: docker/setup-qemu-action@v3
- name: Setup Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64,linux/arm64