Skip to content

Commit

Permalink
test10
Browse files Browse the repository at this point in the history
  • Loading branch information
jarochi committed Jan 26, 2024
1 parent 72e3012 commit 25edec8
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 39 deletions.
19 changes: 0 additions & 19 deletions .github/workflows/github-actions-demo.yml

This file was deleted.

56 changes: 36 additions & 20 deletions .github/workflows/workflows.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,39 @@
name: publish

on: [push]

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
publish-test-docker-image:
runs-on: ubuntu-latest
steps:
- name: Create a Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}
- name: Login to GitHub Container Registry
- uses: actions/checkout@v4
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build the test-docker Docker image
run: |
docker build . --tag ghcr.io/BioGenies/imputomics:docker_test
docker run ghcr.io/BioGenies/imputomics:docker_test
docker push ghcr.io/BioGenies/imputomics:docker_test
publish-test-docker-image:
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Create a Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ github.token }}

- name: Login to GitHub Container Registry
- uses: actions/checkout@v4
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Build the test-docker Docker image
run: |
docker build . --tag ghcr.io/BioGenies/imputomics:docker_test
docker run ghcr.io/BioGenies/imputomics:docker_test
docker push ghcr.io/BioGenies/imputomics:docker_test

0 comments on commit 25edec8

Please sign in to comment.