parent
15d67bd803
commit
206bd9e89a
1 changed files with 13 additions and 18 deletions
|
@ -8,28 +8,23 @@ on:
|
|||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
env:
|
||||
DOCKER_HOST: tcp://localhost:2375
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
- name: Set up Docker Buildx
|
||||
uses: docker/setup-buildx-action@v3
|
||||
with:
|
||||
driver-opts: image=moby/buildkit:latest
|
||||
install: true
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: actions
|
||||
password: ${{ secrets.FORGEJO_TOKEN }}
|
||||
- name: Extract the tag
|
||||
id: extract_tag
|
||||
run: echo "::set-output name=tag::$(echo ${{ env.FORGEJO_SHA }} | cut -c1-8)"
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@v2
|
||||
run: echo "::set-output name=tag::$(echo ${{ forge.sha }} | cut -c1-10)"
|
||||
- name: Buildah Action
|
||||
uses: redhat-actions/buildah-build@v2
|
||||
with:
|
||||
push: true
|
||||
image: git.poire.dev/aramperes/poire.dev
|
||||
tags: ${{ steps.extract_tag.outputs.tag }}
|
||||
context: website
|
||||
file: Dockerfile
|
||||
tags: git.poire.dev/aramperes/poire.dev:${{ steps.extract_tag.outputs.tag }}
|
||||
containerfiles: Dockerfile
|
||||
# - name: Build and push Docker image
|
||||
# uses: docker/build-push-action@v2
|
||||
# with:
|
||||
# push: true
|
||||
# context: website
|
||||
# file: Dockerfile
|
||||
# tags: git.poire.dev/aramperes/poire.dev:${{ steps.extract_tag.outputs.tag }}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue