Skip to content

Test experimental new workflow #22

Test experimental new workflow

Test experimental new workflow #22

Workflow file for this run

name: Lua Docker - Image CI
on:
push:
branches: [ master, ci-changes ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
- name: Configure Docker BuildKit
run: |
echo "DOCKER_BUILDKIT=1" >> $GITHUB_ENV
- name: Login to Docker Hub
if: github.event_name != 'pull_request'
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Extract version components
id: version
run: |
FULL_VERSION=$(cat .lua.release)
MAJOR_VERSION=$(echo $FULL_VERSION | cut -d'.' -f1)
MAJOR_MINOR_VERSION=$(echo $FULL_VERSION | cut -d'.' -f1,2)
echo "full_version=$FULL_VERSION" >> $GITHUB_OUTPUT
echo "major_version=$MAJOR_VERSION" >> $GITHUB_OUTPUT
echo "major_minor_version=$MAJOR_MINOR_VERSION" >> $GITHUB_OUTPUT
- name: Build and push
uses: docker/build-push-action@v4
with:
context: .
push: ${{ github.event_name != 'pull_request' }}
tags: |
evandarwin/lua:${{ steps.version.outputs.full_version }}
evandarwin/lua:${{ steps.version.outputs.major_minor_version }}
evandarwin/lua:${{ steps.version.outputs.major_version }}
evandarwin/lua:latest
provenance: true
attestations:
- type: provenance

Check failure on line 53 in .github/workflows/dockerimage.yml

View workflow run for this annotation

GitHub Actions / Lua Docker - Image CI

Invalid workflow file

The workflow is not valid. .github/workflows/dockerimage.yml (Line: 53, Col: 11): A sequence was not expected
build-args: |
BUILD_DATE=${{ github.event.repository.updated_at }}
VCS_REF=${{ github.sha }}
VERSION=${{ steps.version.outputs.full_version }}