parent
15d67bd803
commit
206bd9e89a
1 changed files with 13 additions and 18 deletions
|
@ -8,28 +8,23 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
env:
|
|
||||||
DOCKER_HOST: tcp://localhost:2375
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v4
|
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
|
- name: Extract the tag
|
||||||
id: extract_tag
|
id: extract_tag
|
||||||
run: echo "::set-output name=tag::$(echo ${{ env.FORGEJO_SHA }} | cut -c1-8)"
|
run: echo "::set-output name=tag::$(echo ${{ forge.sha }} | cut -c1-10)"
|
||||||
- name: Build and push Docker image
|
- name: Buildah Action
|
||||||
uses: docker/build-push-action@v2
|
uses: redhat-actions/buildah-build@v2
|
||||||
with:
|
with:
|
||||||
push: true
|
image: git.poire.dev/aramperes/poire.dev
|
||||||
|
tags: ${{ steps.extract_tag.outputs.tag }}
|
||||||
context: website
|
context: website
|
||||||
file: Dockerfile
|
containerfiles: Dockerfile
|
||||||
tags: git.poire.dev/aramperes/poire.dev:${{ steps.extract_tag.outputs.tag }}
|
# - 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