diff --git a/.github/workflows/image_creation.yaml b/.github/workflows/image_creation.yaml new file mode 100644 index 0000000..5e545e0 --- /dev/null +++ b/.github/workflows/image_creation.yaml @@ -0,0 +1,41 @@ +name: Go-tags +on: + push: + tags: + - '*' +jobs: + build: + runs-on: ubuntu-latest + env: + TOKEN: ${{ secrets.TOKEN }} + USERNAME: ${{ vars.USERNAME }} + TAG_VERSION: ${{ github.ref_name }} + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup Quemu + uses: docker/setup-quemu-action@v3 + + - name: Set Up BuildX + uses: docker/setup-buildx-action@v3 + with: + config-inline: | + [registry."${{ vars.GITEAINSTANCE }}"] + http = true + insecure = true + + - name: Login to Docker + uses: docker/login-action@v3 + with: + registry: ${{ vars.GITEAINSTANCE }} + username: ${{ vars.USERNAME }} + password: ${{ secrets.PASSWORD }} + + - name: Build and push + uses: docker/build-push-action@v6 + with: + context: . + platforms: linux/amd64,linux/arm64 + push: true + tags: https://10.0.0.171/ddns:${{ github.ref_name }}