Skip to content

Commit

Permalink
And this CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
thebeanogamer committed Feb 8, 2022
1 parent 3c11d6c commit c698f01
Showing 1 changed file with 18 additions and 19 deletions.
37 changes: 18 additions & 19 deletions .github/workflows/build-dockerfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,26 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout repository
uses: actions/checkout@v2
with:
submodules: true

- name: Checkout submodules
uses: textbook/git-checkout-submodule-action@master
- name: Build Docker container
run: docker build -t ractf/shell:latest -t ghcr.io/ractf/shell:latest .

- name: Build Docker container
run: docker build -t ractf/shell:latest -t ghcr.io/ractf/shell:latest .
- name: Login to Docker Hub
if: github.ref == 'refs/heads/master'
run: docker login --username ractf --password ${{ secrets.password }}

- name: Login to Docker Hub
if: github.ref == 'refs/heads/master'
run: docker login --username ractf --password ${{ secrets.password }}
- name: Login to Github Container Registry
if: github.ref == 'refs/heads/master'
run: echo ${{ secrets.ghtoken }} | docker login ghcr.io -u ${{ secrets.ghuser }} --password-stdin

- name: Login to Github Container Registry
if: github.ref == 'refs/heads/master'
run: echo ${{ secrets.ghtoken }} | docker login ghcr.io -u ${{ secrets.ghuser }} --password-stdin
- name: Push to Docker Hub
if: github.ref == 'refs/heads/master'
run: docker push ractf/shell:latest

- name: Push to Docker Hub
if: github.ref == 'refs/heads/master'
run: docker push ractf/shell:latest

- name: Push to Github Container Registry
if: github.ref == 'refs/heads/master'
run: docker push ghcr.io/ractf/shell:latest
- name: Push to Github Container Registry
if: github.ref == 'refs/heads/master'
run: docker push ghcr.io/ractf/shell:latest

0 comments on commit c698f01

Please sign in to comment.