Skip to content

new(ci): push docker images to ghcr. #1

new(ci): push docker images to ghcr.

new(ci): push docker images to ghcr. #1

Workflow file for this run

name: Build and Push docker images
on:
pull_request:
branches:
- main
paths:
- 'images/**'
push:
branches:
- main
paths:
- 'images/**'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:

Check failure on line 18 in .github/workflows/main.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/main.yml

Invalid workflow file

You have an error in your yaml syntax on line 18
push-images:
strategy:
fail-fast: false
matrix:
architecture: [X64, ARM64]
runs-on: [ "self-hosted", "linux", "${{matrix.architecture}}" ]
steps:
- name: Checkout repo
uses: actions/checkout@v3
- name: Login to Github Packages
uses: docker/login-action@v1
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build images
working-directory: ./images
run: |
make build-all
- name: Push images
if: ${{ github.event_name == 'push' }}
working-directory: ./images
run: |
make docker-push