Skip to content

fix:change tag version #2

fix:change tag version

fix:change tag version #2

Workflow file for this run

# For more details, read this: https://coolify.io/docs/github-actions
name: Build Static Image
on:
push:
branches: ["main"]
env:
REGISTRY: docker.io
IMAGE_NAME: "tgrziminiar/go-cache"
jobs:
amd64:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- name: Login to docker.io
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build image and push to registry
uses: docker/build-push-action@v4
with:
context: .
file: Dockerfile
platforms: linux/amd64
push: true
tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:v7
- name: Deploy to Coolify
run: |
curl --request GET '${{ secrets.COOLIFY_WEBHOOK }}' --header 'Authorization: Bearer ${{ secrets.COOLIFY_TOKEN }}'