Skip to content

Commit

Permalink
Merge pull request #3 from Atelier-Epita/docker-action
Browse files Browse the repository at this point in the history
Add github workflow to build and push docker image
  • Loading branch information
thibaultjunin authored Jan 31, 2023
2 parents a319969 + 7339ef2 commit 4c8e15c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Docker Image CI

on:
push:
tags:
- '*'

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . --file Dockerfile --tag rg.nl-ams.scw.cloud/atelier/orderbot:latest
- name: Push docker image
run: |
docker login rg.nl-ams.scw.cloud/atelier -u nologin --password-stdin <<< "$SCW_SECRET_KEY"
docker push rg.nl-ams.scw.cloud/atelier/orderbot:latest
env:
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}

0 comments on commit 4c8e15c

Please sign in to comment.