Skip to content
This repository has been archived by the owner on Sep 23, 2023. It is now read-only.

Commit

Permalink
🐳 update docker publish script
Browse files Browse the repository at this point in the history
  • Loading branch information
MiWeiss authored Mar 24, 2023
1 parent 57d971c commit be842b2
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,17 @@
name: Docker Image CI

on:
push:
branches: [ "main" ]

env:
TIMESTAMP: $(date +%s)
release:
types: [published]

jobs:

build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Build the Docker image
run: docker build . -t ghcr.io/testingautomated-usi/bisupervised:$TIMESTAMP
run: docker build . -t ghcr.io/testingautomated-usi/bisupervised:${{github.ref_name}}

- name: Publish to github container repository
run: docker push ghcr.io/testingautomated-usi/bisupervised:$TIMESTAMP
run: docker push ghcr.io/testingautomated-usi/bisupervised:${{github.ref_name}}

0 comments on commit be842b2

Please sign in to comment.