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 00d612c
Showing 1 changed file with 15 additions and 7 deletions.
22 changes: 15 additions & 7 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
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@v2
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push the image
uses: docker/build-push-action@v4
with:
context: .
push: true
provenance: false
tags: |
docker.io/wolletd/wg-setup:latest
ghcr.io/wolletd/wg-setup:latest

0 comments on commit 00d612c

Please sign in to comment.