Skip to content

Commit

Permalink
update docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
WolleTD committed Jan 30, 2024
1 parent 63518c1 commit 29db860
Showing 1 changed file with 16 additions and 8 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,29 @@ on:
branches: [ master ]
workflow_dispatch:

env:
DOCKER_BUILDKIT: 1

jobs:
docker:
runs-on: ubuntu-latest
steps:
- name: Pull repository
uses: actions/checkout@v4
- name: Build the image
run: docker build . --tag wolletd/wg-setup:latest
- name: Login to Docker Hub
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Push the image
run: docker push wolletd/wg-setup:latest
- name: Login to ghcr.io
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the image
uses: docker/build-push-action@v5
with:
context: .
push: true
provenance: false
tags: |
docker.io/wolletd/wg-setup:latest
ghcr.io/wolletd/wg-setup:latest

0 comments on commit 29db860

Please sign in to comment.