From e5f9edca7ce96e3243c403467eea1f00cfcebc5e Mon Sep 17 00:00:00 2001 From: Alan O'Callaghan Date: Wed, 31 May 2023 18:20:46 +0100 Subject: [PATCH] Add container --- .github/workflows/container.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/workflows/container.yml diff --git a/.github/workflows/container.yml b/.github/workflows/container.yml new file mode 100644 index 00000000..f69af913 --- /dev/null +++ b/.github/workflows/container.yml @@ -0,0 +1,29 @@ +# Build and push builder container + +name: Container + +on: + push: + branches: + - main + +jobs: + Deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout Code + uses: actions/checkout@v2 + - name: Login to GitHub Container Registry + uses: docker/login-action@v2 + with: + registry: ghcr.io + username: ${{ github.repository_owner }} + password: ${{ secrets.GITHUB_TOKEN }} + + - name: Build and Push Docker Image + uses: docker/build-push-action@v3 + with: + push: true # Will only build if this is not here + tags: | + ghcr.io/${{github.repository}}:${{ github.sha }} + ghcr.io/${{github.repository}}:latest