Skip to content

Commit

Permalink
test docker
Browse files Browse the repository at this point in the history
xmendez committed Oct 24, 2020
1 parent 44f68f8 commit efec97e
Showing 1 changed file with 25 additions and 18 deletions.
43 changes: 25 additions & 18 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,35 @@
name: docker-release

on:
release:
types: [published]
push

jobs:
push_to_registries:
name: Push Docker image to multiple registries
docker:
name: Build and push Docker image
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to Docker Hub
uses: docker/build-push-action@v1
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.DOCKER_PASSWORD }}
repository: xmendez/wfuzz
tag_with_ref: true
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
- name: Checkout repo
- uses: actions/checkout@v2

- name: Set up QEMU
uses: docker/setup-qemu-action@v1

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1

- name: Login to ghcr.io
if: github.event_name != 'pull_request'
uses: docker/login-action@v1.4.1
with:
registry: ghcr.io
username: ${{ github.repository_owner }}
password: ${{ secrets.CR_PAT }}
registry: docker.pkg.github.com
repository: xmendez/wfuzz
tag_with_ref: true

- name: Build and push Docker images
uses: docker/build-push-action@v2
with:
context: .
file: Dockerfile
push: ${{ github.event_name != 'pull_request' }}
tags: |
ghcr.io/${{ github.repository_owner }}/wfuzz:test

0 comments on commit efec97e

Please sign in to comment.