Add files for trying to use GitHub Container Registry #2
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: Publish Image | |
on: | |
push: | |
workflow_dispatch: | |
jobs: | |
publish: | |
name: Publish Image | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v3 | |
- 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.GHCR_TOKEN_202506 }} | |
- name: Push to GitHub Container Registry | |
uses: docker/build-push-action@v6 | |
with: | |
push: true | |
tags: matsuo/goss:latest | |
secrets: | | |
GIT_AUTH_TOKEN=${{ secrets.GHCR_TOKEN_202506 }} |