This commit is contained in:
@@ -6,21 +6,23 @@ on:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: container-builder
|
runs-on: act-latest
|
||||||
|
if: gitea.ref == 'refs/heads/main'
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- name: Clone repo
|
||||||
- name: Build
|
uses: actions/checkout@v4
|
||||||
uses: redhat-actions/buildah-build@v2
|
- name: Set up Docker Buildx
|
||||||
|
uses: https://github.com/docker/setup-buildx-action@v3
|
||||||
|
- name: Login to Registry
|
||||||
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
image: ${{ github.repository_owner }}/${{ github.event.repository.name }}
|
|
||||||
tags: latest
|
|
||||||
containerfiles: |
|
|
||||||
./Containerfile
|
|
||||||
- name: Push
|
|
||||||
uses: redhat-actions/push-to-registry@v2
|
|
||||||
with:
|
|
||||||
image: ${{ github.repository_owner }}/${{ github.event.repository.name }}
|
|
||||||
tags: latest
|
|
||||||
registry: git.plabble.org
|
registry: git.plabble.org
|
||||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
- name: Build and push Docker image
|
||||||
|
uses: https://github.com/docker/build-push-action@v5
|
||||||
|
with:
|
||||||
|
context: .
|
||||||
|
file: ./Containerfile
|
||||||
|
push: true
|
||||||
|
tags: git.plabble.org/job79/devcontainer:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user