Skip to content

Commit

Permalink
Update dockerimage.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yufree authored Jan 12, 2021
1 parent b071445 commit f294c58
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,28 @@
name: Docker Image CI

on: [push]
name: Docker Image CI & Publish Docker image

on:
push:
branches:
- main
release:
types: [published]
jobs:

build:

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Build the Docker image
run: docker build . --file verse_xcms/Dockerfile --tag my-image-name:$(date +%s)
- name: Check out the repo
uses: actions/checkout@v2
- name: Push to GitHub Packages
uses: docker/build-push-action@v1
with:
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: docker.pkg.github.com
repository: yufree/xcmsrocker/xcmsrocker
tag_with_ref: true


0 comments on commit f294c58

Please sign in to comment.