Merge pull request #786 from OrangeBao/main #127
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: Upload Images | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
images: | |
runs-on: ubuntu-latest | |
permissions: write-all | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: install QEMU | |
uses: docker/setup-qemu-action@v3 | |
- name: install Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: Login registry | |
run: | | |
echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin | |
- name: Push images | |
env: | |
ON_PLUGINS: true | |
TAG: latest | |
run: | | |
make upload-images VERSION=$TAG |