File: docker.yml

package info (click to toggle)
pwntools 4.15.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 18,508 kB
  • sloc: python: 59,870; ansic: 48,351; asm: 45,047; sh: 396; makefile: 256
file content (64 lines) | stat: -rw-r--r-- 2,200 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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@v3

      - name: Login to Docker Hub
        uses: docker/login-action@v3
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_PASSWORD }}

      - name: Build and push base image
        uses: docker/build-push-action@v6
        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@v6
        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@v6
        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@v6
        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@v6
        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