Skip to content

fix: add git_rev arg to dockerfile #11

fix: add git_rev arg to dockerfile

fix: add git_rev arg to dockerfile #11

on:
push:
branches: [main]
permissions:
contents: read
packages: write
jobs:
build-container:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ inputs.ref }}
- name: Set up 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: Docker metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ghcr.io/rosesmedia/radio-tx
flavor: latest=true
- name: Build and push
uses: docker/build-push-action@v6
with:
context: .
build-args:
- GIT_REV=${{ github.sha }}

Check failure on line 36 in .github/workflows/build-container.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-container.yml

Invalid workflow file

The workflow is not valid. .github/workflows/build-container.yml (Line: 36, Col: 13): A sequence was not expected
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: linux/amd64
cache-from: type=gha
cache-to: type=gha,mode=max
file: Dockerfile