Skip to content

Commit

Permalink
Remove docker_build job again (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
danarbaugh authored Sep 5, 2023
1 parent b161c43 commit 5fca9fc
Showing 1 changed file with 0 additions and 55 deletions.
55 changes: 0 additions & 55 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,58 +35,3 @@ jobs:
- name: Build Project
run: |
make
docker_build:
runs-on: ubuntu-22.04
name: Docker Build
if: github.event_name != 'pull_request' || (github.event.pull_request.head.repo.full_name == 'rebuy-de/aws-nuke' && github.event.pull_request.user.login != 'dependabot[bot]')

steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Generate image tags
shell: bash
run: |
if [ "${GITHUB_EVENT_NAME}" == "pull_request" ]; then
BRANCH="$(echo ${GITHUB_HEAD_REF} | tr '/' '_')"
echo "tags=quay.io/rebuy/aws-nuke:${BRANCH},docker.io/rebuy/aws-nuke:${BRANCH}" >> $GITHUB_OUTPUT
else
echo "tags=quay.io/rebuy/aws-nuke:main,docker.io/rebuy/aws-nuke:main,\
quay.io/rebuy/aws-nuke:latest,docker.io/rebuy/aws-nuke:latest" >> $GITHUB_OUTPUT
fi
id: generate_tags

- name: Set up QEMU
if: github.event_name != 'pull_request'
id: qemu
uses: docker/setup-qemu-action@v2
with:
platforms: arm64

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
with:
install: true

- name: Login to Docker Hub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Login to Quay.io
uses: docker/login-action@v2
with:
registry: quay.io
username: ${{ secrets.QUAY_USERNAME }}
password: ${{ secrets.QUAY_PASSWORD }}

- name: Build and push
uses: docker/build-push-action@v3
with:
context: .
push: true
tags: ${{ steps.generate_tags.outputs.tags }}
platforms: ${{ github.event_name != 'pull_request' && 'linux/amd64,linux/arm64' || 'linux/amd64' }}

0 comments on commit 5fca9fc

Please sign in to comment.