This commit is contained in:
parent
8aba43a3ed
commit
9dd2af49af
1 changed files with 9 additions and 12 deletions
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
|
@ -4,27 +4,24 @@ on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request:
|
|
||||||
branches:
|
|
||||||
- main
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: actions/setup-go@v5
|
# - uses: actions/setup-go@v5
|
||||||
with:
|
# with:
|
||||||
go-version: '^1.22.5'
|
# go-version: '^1.22.5'
|
||||||
- name: Login to GitHub Container Registry
|
- name: Login to GitHub Container Registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: git.wittern.io
|
registry: git.wittern.io
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.actor }}
|
||||||
password: ${{ secrets.DOCKER_PASSWORD }}
|
password: ${{ secrets.DOCKER_PASSWORD }}
|
||||||
- name: Build the Docker image
|
# - name: Build the Docker image
|
||||||
run: |
|
# run: |
|
||||||
go install github.com/a-h/templ/cmd/templ@latest
|
# go install github.com/a-h/templ/cmd/templ@latest
|
||||||
templ generate
|
# templ generate
|
||||||
docker build . --file Dockerfile --tag git.wittern.io/public/echo-todos
|
# docker build . --file Dockerfile --tag git.wittern.io/public/echo-todos
|
||||||
docker push git.wittern.io/public/echo-todos
|
# docker push git.wittern.io/public/echo-todos
|
||||||
|
|
Loading…
Reference in a new issue