Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
eugene-prout committed Jan 14, 2024
2 parents efc8ed3 + 9e5cbf2 commit ef0bb1a
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]

jobs:
steps:
runs-on: ubuntu-latest
steps:
- name: 'Checkout GitHub Action'
uses: actions/checkout@main

- name: 'Build and push image'
uses: azure/docker-login@v1
with:
login-server: ${{ secrets.REGISTRY_LOGIN_SERVER }}
username: ${{ secrets.REGISTRY_USERNAME }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- run: |
docker build . -t ${{ secrets.REGISTRY_LOGIN_SERVER }}/black-wasm:${{ github.sha }}
docker push ${{ secrets.REGISTRY_LOGIN_SERVER }}/black-wasm:${{ github.sha }}

0 comments on commit ef0bb1a

Please sign in to comment.