Skip to content

Commit

Permalink
Add push action
Browse files Browse the repository at this point in the history
  • Loading branch information
sashayakovtseva committed Nov 30, 2023
1 parent 23efbfa commit 4e60af0
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
name: "Push Image"
on: # yamllint disable-line rule:truthy
push:
tags:
- "*"
permissions:
contents: "write"
packages: "write"
env:
GO_VERSION: "~1.21.3"
jobs:
push:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v3"
with:
fetch-depth: 0
- uses: "authzed/actions/setup-go@main"
with:
go-version: "${{ env.GO_VERSION }}"
- uses: "docker/login-action@v1"
with:
registry: "ghcr.io"
username: "${{ github.actor }}"
password: "${{ secrets.GITHUB_TOKEN }}"
- uses: "docker/setup-qemu-action@v1"
- uses: "docker/setup-buildx-action@v1"
- uses: "docker/build-push-action@v5"
with:
push: true
file: ${{ github.workspace }}/Dockerfile.release
tags: ${{ github.repository }}:${{ github.ref_name }}

0 comments on commit 4e60af0

Please sign in to comment.