Add Forgejo Actions build workflow
Some checks failed
Automated Container Build / build-and-push (push) Failing after 18s
Some checks failed
Automated Container Build / build-and-push (push) Failing after 18s
This commit is contained in:
parent
412e4bcac8
commit
9d7e1637d3
1 changed files with 5 additions and 13 deletions
|
|
@ -12,19 +12,11 @@ jobs:
|
|||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
|
||||
- name: Log into Local Registry
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
registry: 172.17.0.1:3030
|
||||
username: ${{ gitea.actor }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
echo "${{ secrets.GITHUB_TOKEN }}" | docker login 172.17.0.1:3030 -u "${{ gitea.actor }}" --password-stdin
|
||||
|
||||
- name: Build and Push Image
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
context: .
|
||||
push: true
|
||||
tags: 172.17.0.1:3030/${{ gitea.actor }}/${{ github.event.repository.name }}:latest
|
||||
run: |
|
||||
docker build -t 172.17.0.1:3030/${{ gitea.actor }}/${{ github.event.repository.name }}:latest .
|
||||
docker push 172.17.0.1:3030/${{ gitea.actor }}/${{ github.event.repository.name }}:latest
|
||||
Loading…
Add table
Add a link
Reference in a new issue