Skip to content

Commit

Permalink
Add container
Browse files Browse the repository at this point in the history
  • Loading branch information
alanocallaghan committed May 31, 2023
1 parent 06a876c commit e5f9edc
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/container.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit e5f9edc

Please sign in to comment.