This repository has been archived by the owner on Aug 11, 2023. It is now read-only.
fix(deps): update golang.org/x/exp digest to 352e893 #208
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: build & push docker container | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- 'v*' | |
pull_request: | |
branches: | |
- main | |
jobs: | |
docker: | |
runs-on: ubuntu-latest | |
outputs: | |
version: ${{ steps.metal.outputs.version }} | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Docker meta | |
id: metal | |
uses: docker/metadata-action@v4 | |
with: | |
images: | | |
ghcr.io/np-inprove/server | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v2 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v2 | |
- name: Login to GitHub Container Registry | |
if: github.event_name != 'pull_request' | |
uses: docker/login-action@v2 | |
with: | |
registry: ghcr.io | |
username: ${{ github.repository_owner }} | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Build and push | |
uses: docker/build-push-action@v4 | |
with: | |
context: . | |
file: build/docker/Dockerfile | |
platforms: linux/amd64 | |
push: ${{ github.event_name != 'pull_request' }} | |
tags: ${{ steps.metal.outputs.tags }} | |
labels: ${{ steps.metal.outputs.labels }} | |
cache-from: type=gha | |
cache-to: type=gha,mode=max |