mirror of
https://github.com/Gallopsled/pwntools.git
synced 2026-10-12 02:02:27 +00:00
Bumps the github-actions group with 1 update: [docker/build-push-action](https://github.com/docker/build-push-action). Updates `docker/build-push-action` from 6 to 7 - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](https://github.com/docker/build-push-action/compare/v6...v7) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
65 lines
2.1 KiB
YAML
65 lines
2.1 KiB
YAML
name: Publish Docker images
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- beta
|
|
- stable
|
|
workflow_dispatch:
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository_owner == 'Gallopsled'
|
|
steps:
|
|
# Required for subdirectories in Git context
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v4
|
|
|
|
- name: Login to Docker Hub
|
|
uses: docker/login-action@v4
|
|
with:
|
|
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
|
password: ${{ secrets.DOCKERHUB_PASSWORD }}
|
|
|
|
- name: Build and push base image
|
|
uses: docker/build-push-action@v7
|
|
if: github.event_name == 'workflow_dispatch'
|
|
with:
|
|
context: "{{defaultContext}}:extra/docker/base"
|
|
push: true
|
|
tags: pwntools/pwntools:base
|
|
|
|
- name: Build and push stable image
|
|
uses: docker/build-push-action@v7
|
|
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/stable')
|
|
with:
|
|
context: "{{defaultContext}}:extra/docker/stable"
|
|
push: true
|
|
tags: pwntools/pwntools:stable
|
|
|
|
- name: Build and push beta image
|
|
uses: docker/build-push-action@v7
|
|
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/beta')
|
|
with:
|
|
context: "{{defaultContext}}:extra/docker/beta"
|
|
push: true
|
|
tags: pwntools/pwntools:beta
|
|
|
|
- name: Build and push dev image
|
|
uses: docker/build-push-action@v7
|
|
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
|
|
with:
|
|
context: "{{defaultContext}}:extra/docker/dev"
|
|
push: true
|
|
tags: |
|
|
pwntools/pwntools:dev
|
|
pwntools/pwntools:latest
|
|
|
|
- name: Build and push ci image
|
|
uses: docker/build-push-action@v7
|
|
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && github.ref == 'refs/heads/dev')
|
|
with:
|
|
context: "{{defaultContext}}:travis/docker"
|
|
push: true
|
|
tags: pwntools/pwntools:ci
|