Skip to content

Commit

Permalink
Created Windows Release Action (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmeeder22 committed Jun 18, 2021
1 parent 3d627f2 commit 7fa953c
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/linuxrelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ jobs:

# Runs a single command using the runners shell
- name: Build
run: docker build -t ghcr.io/servicenow/atf-headless-runner:${{ github.event.release.tag_name }} .
run: docker build -t ghcr.io/servicenow/atf-headless-runner:lin-${{ github.event.release.tag_name }} .

# Runs a set of commands using the runners shell
- name: Login
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ secrets.GITHUB_USERNAME }} --password-stdin

- name: Publish
run: docker push ghcr.io/servicenow/atf-headless-runner:${{ github.event.release.tag_name }}
run: docker push ghcr.io/servicenow/atf-headless-runner:lin-${{ github.event.release.tag_name }}
34 changes: 34 additions & 0 deletions .github/workflows/windowsrelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# This is a basic workflow to help you get started with Actions

name: Windows Image Release

# Controls when the action will run.
on:
release:
types: [published]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-2019

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

# Runs a single command using the runners shell
- name: Build
run: docker build -f Dockerfile.windows -t ghcr.io/servicenow/atf-headless-runner:win-${{ github.event.release.tag_name }} .

# Runs a set of commands using the runners shell
- name: Login
run: echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ secrets.GITHUB_USERNAME }} --password-stdin

- name: Publish
run: docker push ghcr.io/servicenow/atf-headless-runner:win-${{ github.event.release.tag_name }}

0 comments on commit 7fa953c

Please sign in to comment.